Skip to content

Circular reference detected for service "App\OpenApi\JwtDecorator" #1418

Closed
kochen/docs
#1
@kochen

Description

@kochen

Current documentation causes a circular reference for the decorated service.

A special .inner value was introduced in Symfony 5.1:

# config/services.yaml
services:
    App\Mailer: ~

    App\DecoratingMailer:
        decorates: App\Mailer
        # pass the old service as an argument
        arguments: ['@.inner']

See: https://symfony.com/blog/new-in-symfony-5-1-simpler-service-decoration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions