Jurian Sluiman · Nov 21, 2013
ZF2: Why a service is not available in your constructor
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
Today people still ask why a certain service is not available in a constructor. You can think of events, the event manager or the service locator: there are some variations, but all are about the same topic. Perhaps you can recognise one or more of the list: Why is $this->getServiceLocator() not available in my controllers’s __construct() ? Why does $this->getEvent() return null inside…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.