for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Lug package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Lug\Bundle\ResourceBundle\DependencyInjection\Compiler;
use Lug\Bundle\ResourceBundle\Form\Extension\Base64FileExtension;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
/**
* @author GeLo <[email protected]>
class ReplaceBase64FileExtensionPass implements CompilerPassInterface
{
* {@inheritdoc}
public function process(ContainerBuilder $container)
$container
->getDefinition('ivory.base64_file.form.extension')
->setClass(Base64FileExtension::class)
->addArgument(new Reference('lug.resource.routing.parameter_resolver'));
}