wiki/content/20201116133113-stack_decorators.md

382 B

date id title
2020-11-16 bf86be19-256d-408e-b26e-dcd30d4f1e39 Stack Decorators

Description

Syntax to chain several decorators using a "stack".

Syntax

services:
    App\Mailer\Mailer:
        stack:
            - App\Mailer\LoggingMailer: ~
            - App\Mailer\RateLimitedMailer:
                arguments: [20]
            - App\Mailer\Mailer: ~