for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @project Magento Bridge for Symfony 2.
*
* @author Sébastien MALOT <[email protected]>
* @license MIT
* @url <https://github.com/smalot/magento-bundle>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Smalot\MagentoBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
* Class MagentoExtension
* @package Smalot\MagentoBundle\DependencyInjection
class MagentoExtension extends Extension
{
* {@inheritDoc}
public function load(array $configs, ContainerBuilder $container)
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
// Register parameters into container.
$container->setParameter('magento', $config);
// Register services.
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('services.yml');
}