add shorthand function to get DI handler

This commit is contained in:
Daniel Seifert 2023-01-03 10:47:33 +01:00
parent e0c5dff74f
commit bbadaa1300
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,25 @@
<?php
/**
* 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)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @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();
}

View File

@ -27,6 +27,9 @@
"autoload": {
"psr-4": {
"D3\\DIContainerHandler\\": "./"
}
},
"files": [
"autoload/functions_oxDIC.php"
]
}
}