Skip to content

Commit 127ac0e

Browse files
committed
minor #15137 [DependencyInjection] Fixed invalid alias definition in "Deprecating Service Aliases" YAML example (adamwojs)
This PR was submitted for the 5.2 branch but it was merged into the 4.4 branch instead. Discussion ---------- [DependencyInjection] 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) <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 3938dbd Fixed invalid alias definition in "Deprecating Service Aliases" YAML example
2 parents d9c9923 + 3938dbd commit 127ac0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/alias_private.rst

+1-1
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)