Description
Currently the Zend\Session\AbstractContainer
class has the setDefaultManager()
static method which completely breaks the concept which forces developers to explicitly specify the dependencies for a class, model, controller etc. As a result, many ZF3 components implicitly use the default session manager.
If I configure 'not default' session manager, I have to pass it everywhere including controllers, services, validators (like FlashMessenger) etc., but I think this possiblity is not developed enough in ZF3, because all components use default session manager implicitly.
I suggest to remove the static default session manager and force users to configure and provide the session manager explicitly.
Originally posted by @olegkrivtsov at zendframework/zend-session#58