Tag client services in DI extension class

These tags were originally introduced in 16ecd7cca3. #339 removed the fos_elastica.client definition from config.xml, so this tag needs to be added via the DI extension class now.
This commit is contained in:
Jeremy Mikola 2013-10-30 17:15:09 -04:00
parent 68092eb4db
commit 467ccbf753

View file

@ -74,6 +74,7 @@ class FOSElasticaExtension extends Extension
$clientId = sprintf('fos_elastica.client.%s', $name);
$clientDef = new Definition('%fos_elastica.client.class%', array($clientConfig));
$clientDef->addMethodCall('setLogger', array(new Reference('fos_elastica.logger')));
$clientDef->addTag('fos_elastica.client');
$container->setDefinition($clientId, $clientDef);