8000 Container is rebuilt with any change to a Controller due to ServiceSubscriberInterface · Issue #25906 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Container is rebuilt with any change to a Controller due to ServiceSubscriberInterface #25906
Closed
@weaverryan

Description

@weaverryan
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3 I believe

Hi guys!

Currently, if you make any change to a controller (that extends AbstractController), the container will rebuild. This is caused by the ServiceSubscriberInterface and RegisterServiceSubscriberPass:

That line ultimately means that a normal FileResource is added for the controller file, and any time its modified time is updated, it is updated. This may have just been a quick way of handling this: all we really care about is if the contents of the getSubscribedEvents() method changed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0