slovocast/app/config/container.php

16 lines
366 B
PHP

<?php
declare(strict_types=1);
use Elie\PHPDI\Config\Config;
use Elie\PHPDI\Config\ContainerFactory;
use Psr\Container\ContainerInterface;
// Protect variables from global scope
return (static function (): ContainerInterface {
$config = require __DIR__ . '/config.php';
$factory = new ContainerFactory();
return $factory(new Config($config));
})();