mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added Injector class
This commit is contained in:
@ -5,9 +5,5 @@ define('DS', DIRECTORY_SEPARATOR);
|
||||
require_once(__DIR__ . DS . '..' . DS . 'vendor' . DS . 'autoload.php');
|
||||
require_once(__DIR__ . DS . '..' . DS . 'src' . DS . 'AutoLoader.php');
|
||||
|
||||
$builder = new \DI\ContainerBuilder();
|
||||
$builder->setDefinitionCache(new Doctrine\Common\Cache\ArrayCache());
|
||||
$builder->addDefinitions(__DIR__ . DS . '..' . DS . 'src' . DS . 'di.php');
|
||||
$container = $builder->build();
|
||||
$dispatcher = $container->get('Szurubooru\Dispatcher');
|
||||
$dispatcher = \Szurubooru\Injector::get(\Szurubooru\Dispatcher::class);
|
||||
$dispatcher->run();
|
||||
|
Reference in New Issue
Block a user