Exemplo n.º 1
0
 /**
  * @param array $options
  */
 public function __construct($options = array())
 {
     parent::__construct(null, $options);
     //	Set working directory
     if (null === $this->_workingDirectory) {
         $this->_workingDirectory = getcwd();
     }
 }
Exemplo n.º 2
0
Arquivo: Http.php Projeto: kisma/kisma
 /**
  * {@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);
 }