Skip to content

Commit 3938dbd

Browse files
adamwojsjaviereguiluz
authored andcommitted
Fixed invalid alias definition in "Deprecating Service Aliases" YAML example
Fixed invalid alias definition in "Deprecating Service Aliases" YAML example. Current version is ```yaml app.mailer: alias: '@app\Mail\PhpMailer' # .... ``` Correct version is ```yaml app.mailer: alias: 'App\Mail\PhpMailer' # .... ``` (without `@` prefix in service id)
1 parent d9c9923 commit 3938dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/alias_private.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ or you decided not to maintain it anymore), you can deprecate its definition:
166166
.. code-block:: yaml
167167
168168
app.mailer:
169-
alias: '@App\Mail\PhpMailer'
169+
alias: 'App\Mail\PhpMailer'
170170
171171
# this will display a generic deprecation message...
172172
deprecated: true

0 commit comments

Comments
 (0)