Fix hardcoded hotPathTagName

This commit is contained in:
Jérémy Derussé 2019-03-29 20:18:37 +01:00
parent 755d481168
commit 67fb8eff2e
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class RegisterListenersPass implements CompilerPassInterface
$definition->addMethodCall('addListener', $args); $definition->addMethodCall('addListener', $args);
if (isset($this->hotPathEvents[$args[0]])) { if (isset($this->hotPathEvents[$args[0]])) {
$container->getDefinition($id)->addTag('container.hot_path'); $container->getDefinition($id)->addTag($this->hotPathTagName);
} }
} }
$extractingDispatcher->listeners = []; $extractingDispatcher->listeners = [];