public function define($pattern, $controller, $filters = array())
    {
        $rule = clone $this->rulePrototype;

        $rule->setPattern($pattern)->setController($controller)->setFilters($filters);

        array_push($this->rules, $rule);

        return $this;
    }
public function define($pattern, $controller, $filters = array())
    {
        $rule = clone $this->rulePrototype;

        $rule->setPattern($pattern)->setController($controller)->setFilters($filters);

        array_push($this->rules, $rule);

        return $this;
    }
public function define ( $ pattern , $ controller , $ filters = array ( ) ) { $ rule = clone $ this -> rulePrototype ; $ rule -> setPattern ( $ pattern ) -> setController ( $ controller ) -> setFilters ( $ filters ) ; array_push ( $ this -> rules , $ rule ) ; return $ this ; }
Define a routing rule with corresponding controller

@param string $pattern
@param string $controller Class name or alias
@param array  $filters

@return $this
Define a routing rule with corresponding controller