Esempio 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();
     }
 }
Esempio n. 2
0
File: Http.php Progetto: 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);
 }