-
Notifications
You must be signed in to change notification settings - Fork 89
[ZF3] [bc-break] remove ControllerLoader, use ControllerManager instead #6
Conversation
735a68c
to
9d78688
Compare
rebased |
$this->manager = $this->services->get('ControllerManager'); | ||
$config = array( | ||
'invokables' => array( | ||
>>>>>>> remove ControllerLoader, use ControllerManager instead:test/Service/ControllerManagerFactoryTest.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad rebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
@@ -13,7 +13,7 @@ | |||
use Zend\ServiceManager\FactoryInterface; | |||
use Zend\ServiceManager\ServiceLocatorInterface; | |||
|
|||
class ControllerLoaderFactory implements FactoryInterface | |||
class ControllerManagerFactory implements FactoryInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead create a new class and inherit the old one from the new one. By this way BC is preserved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as this is for ZF3, I thik it is ok to remove the old one /cc @weierophinney
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do it and this could be merged in 2.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, and ControllerLoaderFactory
marked as @deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as zendframework/zend-authentication#2 (comment) , ControllerLoader actually removed for 3.0
7aede3b
to
3bae995
Compare
b4c1a29
to
5e0828c
Compare
@@ -44,7 +44,7 @@ class ServiceListenerFactory implements FactoryInterface | |||
'factories' => [ | |||
'Application' => 'Zend\Mvc\Service\ApplicationFactory', | |||
'Config' => 'Zend\Mvc\Service\ConfigFactory', | |||
'ControllerLoader' => 'Zend\Mvc\Service\ControllerLoaderFactory', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old key must be preserved for bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment with @deprecated
for to remove in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now it for 3.0, can be actually removed.
{ | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a constructor with
trigger_error('Description', E_USER_DEPRECATED);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
I've updated PR title |
based on @weierophinney comment on zendframework/zend-authentication#2 (comment) , I will update it as fully remove ControllerLoader, and it will be a PR for 3.0 |
60fa2fb
to
73c94e6
Compare
PR title and commits force updated so we use it for 3.0 |
@Ocramius it can be marked as 3.0.0 milestone again ;) |
With the previous approach this could be merged right now. With the v3 tunel vision things will be freeze sine die |
Supersede by #36 |
see zendframework/zendframework#4962