public function __construct(sfActions $actions) { $this->_actions = $actions; $this->_sympalContext = $actions->getSympalContext(); $this->_user = $actions->getUser(); $this->_response = $actions->getResponse(); $this->_request = $actions->getRequest(); $this->_dispatcher = $this->_sympalContext->getSymfonyContext()->getConfiguration()->getEventDispatcher(); }