add shorthand function to get DI handler
This commit is contained in:
parent
e0c5dff74f
commit
bbadaa1300
25
autoload/functions_oxDIC.php
Normal file
25
autoload/functions_oxDIC.php
Normal 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();
|
||||
}
|
@ -27,6 +27,9 @@
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"D3\\DIContainerHandler\\": "./"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"autoload/functions_oxDIC.php"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user