for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ONGR\ElasticsearchBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
/**
* Compiles elastic search data.
class ManagerFactoryPass implements CompilerPassInterface
{
* {@inheritdoc}
public function process(ContainerBuilder $container)
$definition = $container->getDefinition('es.manager_factory');
if ($container->hasDefinition('debug.stopwatch')) {
$definition->addMethodCall('setStopwatch', [new Reference('debug.stopwatch')]);
}