mep
This commit is contained in:
parent
e958163a4a
commit
b8a5a1ff58
79 changed files with 15113 additions and 0 deletions
24
config/container.php
Normal file
24
config/container.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
use App\Settings;
|
||||
use DI\ContainerBuilder;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
return function (Settings $settings = new Settings()): ContainerInterface {
|
||||
$containerBuilder = new ContainerBuilder();
|
||||
|
||||
$containerBuilder->addDefinitions([
|
||||
Settings::class => $settings,
|
||||
]);
|
||||
// Define container entries
|
||||
$containerBuilder->addDefinitions(
|
||||
require __DIR__ . '/definitions.php',
|
||||
);
|
||||
|
||||
|
||||
|
||||
return $containerBuilder->build();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue