Skip to content

[doctrine] Documentation about subscribers is outdated #15234

@Nek-

Description

@Nek-

The documentation about doctrine state things about subscribers but it's not up to date because the situation changed in the doctrine bundle.

Before:

class MyAwesomeSubscriber implements EventSubscriber
{
    // ...
}
# config/services.yaml
services:
    # ...

    App\Doctrine\MyAwesomeSubscriber:
        tags:
            - { name: 'doctrine.event_subscriber' }

After:

class MyAwesomeSubscriber implements EventSubscriberInterface
{
    // ...
}

(and that's all)

Changed since Doctrine Bundle 2.1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoctrinehasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions