public function getPackages() { $packages = $this->collection->getPackages(); foreach ($packages as $package) { if (!empty($package['config'])) { foreach ($package['config'] as $config) { $this->configurator->addConfig($package['dir'] . $config, Configurator::NONE); } } } return $packages; }
<?php /** * Bootstrap file * @author Peter Zádori */ use movi\Config\Configurator; // Require loader require __DIR__ . '/../vendor/autoload.php'; // Create configurator $configurator = new Configurator(); $configurator->addConfig(__DIR__ . '/config/config.neon'); // Enable Debugger //$configurator->setDebugMode(true); // Create a container $container = $configurator->createContainer(); // Run the application! return $container;