public function __construct($route, $defaults = array(), $options = array()) { $defaultOptions = array('model' => isset($defaults['controller']) ? $defaults['controller'] : null) + self::$defaultOptions; $options = Set::merge($defaultOptions, $options); parent::__construct($route, $defaults, $options); $this->_setSlugOptions($options); $this->_identity = $this->getOption('identity'); self::$_instances[$this->_identity] = $this; }
public function __construct($route, $defaults = array(), $options = array()) { parent::__construct($route, $defaults, $options); $this->_setOptions(); self::$_instances[$this->identity] = $this; }