for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Meup TagCommander Bundle.
*
* (c) 1001pharmacies <http://github.com/1001pharmacies/tagcommander-bundle>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Meup\Bundle\TagcommanderBundle\DependencyInjection\CompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Reference;
class CollectorSubscriber implements CompilerPassInterface
{
* {@inheritDoc}
public function process(ContainerBuilder $container)
$dispatcher = $container->findDefinition('event_dispatcher');
$dispatcher->addMethodCall('addSubscriber', array(new Reference('meup_tagcommander.datacollector_subscriber')));
}