Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 2b5ba69

Browse files
andrey1swouterj
andrey1s
authored andcommitted
fix define service
1 parent 870fe07 commit 2b5ba69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundles/routing/dynamic_customize.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ priority, the earlier the enhancer is executed.
5454
app.routing.enhancer.simple:
5555
class: AppBundle\Routing\Enhancer\SimpleEnhancer
5656
tags:
57-
- { name: dynamic_router_route_enhancer priority: 10 }
57+
- { name: dynamic_router_route_enhancer, priority: 10 }
5858
5959
.. code-block:: xml
6060
@@ -74,9 +74,9 @@ priority, the earlier the enhancer is executed.
7474
7575
use Symfony\Component\DependencyInjection\Definition;
7676
77-
$definitionSendmail = new Definition('AppBundle\Routing\Enhancer\SimpleEnhancer');
78-
$definitionSendmail->addTag('dynamic_router_route_enhancer',array('priority' => 10));
79-
$container->setDefinition('app.routing.enhancer.simple', $definitionSendmail);
77+
$definition = new Definition('AppBundle\Routing\Enhancer\SimpleEnhancer');
78+
$definition->addTag('dynamic_router_route_enhancer',array('priority' => 10));
79+
$container->setDefinition('app.routing.enhancer.simple', $definition);
8080
8181
.. index:: Route Provider
8282

0 commit comments

Comments
 (0)