| 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:
|
$this->container->addObjectResource($class); |
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.