/** * @param array $options */ public function __construct($options = array()) { parent::__construct(null, $options); // Set working directory if (null === $this->_workingDirectory) { $this->_workingDirectory = getcwd(); } }
/** * {@InheritDoc} */ public function initialize($consumer, $request = null) { if (!parent::initialize($consumer, $request)) { return false; } if (null === $this->_request) { $this->_request = new HttpRequest(); } // Trigger the event return $this->publish(self::RequestReceived, $this->_request); }