示例#1
0
 public function initialize(sfEventDispatcher $dispatcher, $parameters = array(), $attributes = array(), $options = array())
 {
     parent::initialize($dispatcher, $parameters, $attributes, $options);
     if (null === self::$initialPathArrayKeys) {
         self::$initialPathArrayKeys = array_keys($this->getPathInfoArray());
     }
     $this->resetPathInfoArray();
 }
示例#2
0
 public function initialize(sfEventDispatcher $dispatcher, $parameters = array(), $attributes = array(), $options = array())
 {
     if (isset($options['content_custom_only_for_test'])) {
         $this->content = $options['content_custom_only_for_test'];
         unset($options['content_custom_only_for_test']);
     }
     parent::initialize($dispatcher, $parameters, $attributes, $options);
     if (null === self::$initialPathArrayKeys) {
         self::$initialPathArrayKeys = array_keys($this->getPathInfoArray());
     }
     $this->resetPathInfoArray();
 }