forked from fa/breadcrumb-the-shire
31 lines
897 B
PHP
31 lines
897 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use MintyPHP\App\AppContainer;
|
||
|
|
use MintyPHP\App\Container\Registrars\AccessRegistrar;
|
||
|
|
use MintyPHP\App\Container\Registrars\AppServicesRegistrar;
|
||
|
|
use MintyPHP\App\Container\Registrars\AuthRegistrar;
|
||
|
|
use MintyPHP\App\Container\Registrars\DirectoryRegistrar;
|
||
|
|
use MintyPHP\App\Container\Registrars\RepositoryFactoryRegistrar;
|
||
|
|
use MintyPHP\App\Container\Registrars\ServiceFactoryRegistrar;
|
||
|
|
use MintyPHP\App\Container\Registrars\SettingsRegistrar;
|
||
|
|
use MintyPHP\App\Container\Registrars\UserRegistrar;
|
||
|
|
|
||
|
|
$container = new AppContainer();
|
||
|
|
|
||
|
|
$registrars = [
|
||
|
|
new RepositoryFactoryRegistrar(),
|
||
|
|
new ServiceFactoryRegistrar(),
|
||
|
|
new AccessRegistrar(),
|
||
|
|
new AuthRegistrar(),
|
||
|
|
new DirectoryRegistrar(),
|
||
|
|
new UserRegistrar(),
|
||
|
|
new SettingsRegistrar(),
|
||
|
|
new AppServicesRegistrar(),
|
||
|
|
];
|
||
|
|
|
||
|
|
foreach ($registrars as $registrar) {
|
||
|
|
$registrar->register($container);
|
||
|
|
}
|
||
|
|
|
||
|
|
return $container;
|