Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed findByTag usage
  • Loading branch information
Gappa authored and dg committed Mar 7, 2022
1 parent 3ada6a8 commit c4c7aa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/cs/dependency-injection/extensions.texy
Expand Up @@ -142,8 +142,8 @@ class BlogExtension extends Nette\DI\CompilerExtension
{
$builder = $this->getContainerBuilder();

foreach ($builder->findByTag('logaware') as $name) {
$builder->getDefinition($name)->addSetup('setLogger');
foreach ($builder->findByTag('logaware') as $serviceName => $tagValue) {
$builder->getDefinition($serviceName)->addSetup('setLogger');
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions doc/en/dependency-injection/extensions.texy
Expand Up @@ -142,8 +142,8 @@ class BlogExtension extends Nette\DI\CompilerExtension
{
$builder = $this->getContainerBuilder();

foreach ($builder->findByTag('logaware') as $name) {
$builder->getDefinition($name)->addSetup('setLogger');
foreach ($builder->findByTag('logaware') as $serviceName => $tagValue) {
$builder->getDefinition($serviceName)->addSetup('setLogger');
}
}
}
Expand Down

0 comments on commit c4c7aa1

Please sign in to comment.