wiki/content/20201116133113-stack_decorators.md

22 lines
382 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-16
2024-05-06 20:40:05 +00:00
id: bf86be19-256d-408e-b26e-dcd30d4f1e39
title: Stack Decorators
---
# Description
Syntax to chain several decorators using a "stack".
# Syntax
``` php
services:
App\Mailer\Mailer:
stack:
- App\Mailer\LoggingMailer: ~
- App\Mailer\RateLimitedMailer:
arguments: [20]
- App\Mailer\Mailer: ~
```