Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Enable RobotLoader - this will load all classes automatically
- $configurator->setTempDirectory(__DIR__ . '/temp');
- $robot = $configurator->createRobotLoader()
- ->addDirectory(APP_DIR)
- ->addDirectory(LIBS_DIR);
- $robot->register();
- $configurator->onCompile[] = function ($config, $compiler) use ($robot) {
- $compiler->addExtension(new PresentersRegisterExtension($robot));
- };
- // Create Dependency Injection container from config.neon file
- $configurator->addConfig(__DIR__ . '/config/config.neon');
- $container = $configurator->createContainer();
- $container->addService('robotLoader', $robot);
Advertisement
Add Comment
Please, Sign In to add comment