mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
524 B
524 B
date | id | title |
---|---|---|
2020-11-12 | 340acfc8-c621-4578-a588-c306ebaa4d75 | Deprecating Service Aliases |
Description
It's possible to deprecate service aliases
Syntax
# config/services.yaml
services:
# ...
app.mailer:
alias: App\Mail\PhpMailer
deprecated: ~
Custom error message
# config/services.yaml
services:
# ...
app.mailer:
alias: App\Mail\PhpMailer
deprecated: 'The "%alias_id%" service alias is deprecated.'