Skip to content

Commit

Permalink
Fixed the tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
Iltar van der Berg committed Apr 14, 2016
1 parent bf50e16 commit c35b56f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookbook/controller/argument_value_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ and adding a priority.
arguments:
- '@security.token_storage'
tags:
- { name: controller_argument.value_resolver, priority: 50 }
- { name: controller.argument_value_resolver, priority: 50 }
.. code-block:: xml
Expand All @@ -187,7 +187,7 @@ and adding a priority.
<services>
<service id="app.value_resolver.user" class="AppBundle\ArgumentValueResolver\UserValueResolver">
<argument type="service" id="security.token_storage">
<tag name="controller_argument.value_resolver" priority="50" />
<tag name="controller.argument_value_resolver" priority="50" />
</service>
</services>
Expand All @@ -202,7 +202,7 @@ and adding a priority.
'AppBundle\ArgumentValueResolver\UserValueResolver',
array(new Reference('security.token_storage'))
);
$definition->addTag('controller_argument.value_resolver', array('priority' => 50));
$definition->addTag('controller.argument_value_resolver', array('priority' => 50));
$container->setDefinition('app.value_resolver.user', $definition);
.. _`yield`: http://php.net/manual/en/language.generators.syntax.php

0 comments on commit c35b56f

Please sign in to comment.