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:
parent
68092eb4db
commit
467ccbf753
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue