mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 03:26:22 +00:00
387 B
387 B
date | id | title |
---|---|---|
2020-11-16 | e1692cfa-16bc-497a-aeb1-0a7468414155 | Simpler Service Decoration |
Syntax
# config/services.yaml
services:
App\Mailer: ~
# Before
App\SpecialMailer:
decorates: App\Mailer
arguments: ['@App\SpecialMailer.inner']
# After
App\SpecialMailer:
decorates: App\Mailer
arguments: ['@.inner']