for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace As3\Bundle\ModlrBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
/**
* Loads and manages the bundle configuration for Modlr.
*
* @author Jacob Bare <[email protected]>
*/
class As3ModlrExtension extends Extension
{
* {@inheritDoc}
public function load(array $configs, ContainerBuilder $container)
// Process the config.
$config = $this->processConfiguration(new Configuration(), $configs);
// Load bundle services.
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
$serviceLoader = new ServiceLoaderManager($container);
$serviceLoader->loadServices($config);
}