Skip to content

Commit 1524f5a

Browse files
committed
Fixed an error in the auto_alias format value
1 parent bab745d commit 1524f5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/dic_tags.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ the generic ``app.lock`` service can be defined as follows:
297297
public: false
298298
app.lock:
299299
tags:
300-
- { name: auto_alias, format: "app.%database_type%.lock" }
300+
- { name: auto_alias, format: "app.%database_type%_lock" }
301301
302302
.. code-block:: xml
303303
@@ -315,7 +315,7 @@ the generic ``app.lock`` service can be defined as follows:
315315
class="AppBundle\Lock\SqliteLock" />
316316
317317
<service id="app.lock">
318-
<tag name="auto_alias" format="app.%database_type%.lock" />
318+
<tag name="auto_alias" format="app.%database_type%_lock" />
319319
</service>
320320
</services>
321321
</container>
@@ -328,7 +328,7 @@ the generic ``app.lock`` service can be defined as follows:
328328
->register('app.sqlite_lock', 'AppBundle\Lock\SqliteLock')->setPublic(false)
329329
330330
->register('app.lock')
331-
->addTag('auto_alias', array('format' => 'app.%database_type%.lock'))
331+
->addTag('auto_alias', array('format' => 'app.%database_type%_lock'))
332332
;
333333
334334
The ``format`` parameter defines the expression used to construct the name of

0 commit comments

Comments
 (0)