for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
/*
* This file is part of the Bukashk0zzzLiipImagineSerializationBundle
*
* (c) Denis Golubovskiy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bukashk0zzz\LiipImagineSerializationBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
/**
* This is the class that loads and manages Bukashk0zzzLiipImagineSerializationBundle configuration
class Bukashk0zzzLiipImagineSerializationExtension extends Extension
{
* {@inheritdoc}
public function load(array $configs, ContainerBuilder $container)
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$container->getDefinition('bukashk0zzz_liip_imagine_pre_serialization.listener')
->addArgument($config);
$container->getDefinition('bukashk0zzz_liip_imagine_post_serialization.listener')
}