-
Notifications
You must be signed in to change notification settings - Fork 2.5k
BC Break in Controller Loader, controllers no more present in controller loader. #3576
Comments
Were those controllers managed via DI, by any chance? Ping @Ocramius On Sunday, January 27, 2013, Dolf Schimmel wrote:
Matthew Weier O'Phinney |
@weierophinney still should be in there. We only removed the initializer, not the abstract factory. |
Dolf - can you provide some code - config, etc - to reproduce, please? The On Sunday, January 27, 2013, Marco Pivetta wrote:
Matthew Weier O'Phinney |
@weierophinney I got a pointer from Waly on github to remove the 'getServiceLocator()' call. Removing that, gave me the following array: array(6) {
["Application\Controller\Index"]=>
string(26) "applicationcontrollerindex"
["Application\Controller\Api"]=>
string(24) "applicationcontrollerapi"
["Application\Controller\Api\Website"]=>
string(31) "applicationcontrollerapiwebsite"
["Application\Controller\Api\Website\User"]=>
string(35) "applicationcontrollerapiwebsiteuser"
["applicationcontrollerapi"]=>
string(24) "applicationcontrollerapi"
["applicationcontrollerapiwebsite"]=>
string(31) "applicationcontrollerapiwebsite"
} Using that array, my code worked again (on 2.1). Right now, I don't have any code that allows you to reproduce this. I could see if I can set up something with the skeleton app though. Edit: Switching back to 2.0, without the getServiceLocator() call, it works as well. Nevertheless, we still have some bc break going on. |
Git bisect rocks...
|
@Freeaqingme Can you please test again? I've reverted the PR that introduced the issue. |
Cannot recreate the issue now locally. |
@weierophinney Fix confirmed! |
…hotfix/3424" This reverts commit b9d19770186be6b50e9908c94d495db42034f6df, reversing changes made to 054f7a0f95bb919cce95faa53ced0a525017602f. Reverts zendframework/zendframework#3424 due to BC breaks reported in zendframework/zendframework#3576 Conflicts: tests/ZendTest/ServiceManager/ServiceManagerTest.php
Reverts zendframework/zendframework#3424 due to BC issue reported in zendframework/zendframework#3576 This reverts commit c8c637523fe1a5705ba01684386a8ef63e675464, reversing changes made to 054f7a0f95bb919cce95faa53ced0a525017602f.
Hi,
I have the following code:
Here the sm property represents the Service Manager. However, some entries (my controllers) that are present in 2.0.6, are no more so in develop.
Diff of the $controllers array:
The text was updated successfully, but these errors were encountered: