ZF2-37: Belated broker marking of started resources

Description

Possible be better to mark started application resources before it initialization.

Because happens situation when used "modules" resource and one of bootstrap try to load resource "modules" and broker try to init it once more with current bootstrap as application instance, before resource "modules" would marked like already is run.

My suggestions to move marking like before resource initialization: Zend\Application\AbstractBootstrap method _executeResource()


$broker->markRun($resourceName);
$return = $plugin->init();

Comments

Resolved by commit: 984453a5f5bf44a35bb4571a65dfe45e4f1517c0