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(); }
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(); }