Exemplo n.º 1
0
 /**
  * Registers a new stream in the inflector.
  *
  * @param string $streamName The new stream name
  * @param string $streamPath The new stream path
  * @param boolean $secure Do we secure the path by adding the ending slash?
  * @throws Opt_ObjectExists_Exception
  */
 public function addStream($streamName, $streamPath, $secure = true)
 {
     if (isset($this->_streams[(string) $streamName])) {
         throw new Opt_ObjectExists_Exception('stream', (string) $streamName, 'standard inflector');
     }
     $this->_streams[(string) $streamName] = (string) $streamPath;
     if ($secure) {
         $this->_tpl->_securePath($this->_streams[(string) $streamName]);
     }
 }