DIContainer/autoload/functions_oxDIC.php

44 lines
1023 B
PHP
Raw Normal View History

<?php
/**
2024-06-15 23:10:49 +02:00
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
2024-06-15 23:10:49 +02:00
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
2024-02-17 22:33:41 +01:00
use D3\DIContainerHandler\d3DicException;
use D3\DIContainerHandler\d3DicHandler;
2023-11-23 15:01:44 +01:00
use Symfony\Component\DependencyInjection\Container;
/**
* @return Container
2024-02-17 22:33:41 +01:00
* @throws d3DicException
*/
function d3GetOxidDIC_withExceptions(): Container
{
return d3DicHandler::getInstance();
}
/**
* @return Container
*/
function d3GetOxidDIC(): Container
{
try {
return d3GetOxidDIC_withExceptions();
2024-06-15 23:10:49 +02:00
// @codeCoverageIgnoreStart
} catch (d3DicException $exception) {
trigger_error($exception->getMessage(), E_USER_ERROR);
}
2024-05-27 13:41:52 +02:00
// @codeCoverageIgnoreEnd
}