wiki/content/20201116133423-simpler_service_decoration.md

24 lines
385 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:04:36 +00:00
date: 20201116
2024-05-06 20:40:05 +00:00
id: e1692cfa-16bc-497a-aeb1-0a7468414155
title: Simpler Service Decoration
---
# Syntax
``` yaml
# config/services.yaml
services:
App\Mailer: ~
# Before
App\SpecialMailer:
decorates: App\Mailer
arguments: ['@App\SpecialMailer.inner']
# After
App\SpecialMailer:
decorates: App\Mailer
arguments: ['@.inner']
```