mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-23 03:56:23 +00:00
20 lines
365 B
Markdown
20 lines
365 B
Markdown
---
|
|
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: ~
|
|
```
|