Skip to content

Instantly share code, notes, and snippets.

@bdunogier
Created February 27, 2017 14:17
Show Gist options
  • Save bdunogier/1469c97ae4a36e9a8ab9ae7c73fe76a8 to your computer and use it in GitHub Desktop.
Save bdunogier/1469c97ae4a36e9a8ab9ae7c73fe76a8 to your computer and use it in GitHub Desktop.
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace EzSystems\RepositoryFormsBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
class LiformPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
$resolver = $container->getDefinition('liform.resolver');
$resolver->addMethodCall('setTransformer', ['file', new Reference('liform.transformer.null')]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment