diff --git a/autoload/functions_oxDIC.php b/autoload/functions_oxDIC.php new file mode 100644 index 0000000..dce0f68 --- /dev/null +++ b/autoload/functions_oxDIC.php @@ -0,0 +1,25 @@ + + * @link https://www.oxidmodule.com + */ + +declare(strict_types=1); + +use D3\DIContainerHandler\d3DicHandler; +use Symfony\Component\DependencyInjection\ContainerBuilder; + +/** + * @return ContainerBuilder + */ +function d3GetOxidDIC(): ContainerBuilder +{ + return d3DicHandler::getInstance(); +} diff --git a/composer.json b/composer.json index ef3cd3a..16a96e1 100644 --- a/composer.json +++ b/composer.json @@ -27,6 +27,9 @@ "autoload": { "psr-4": { "D3\\DIContainerHandler\\": "./" - } + }, + "files": [ + "autoload/functions_oxDIC.php" + ] } }