public function route(array $condition)
    {
        if (!in_array($condition['operator'], array('=', '!='))) {
            return false;
        }

        $route = $this->route->get();
        return $this->compare($route['pattern'], $condition['value'], $condition['operator']);
    }
public function route(array $condition)
    {
        if (!in_array($condition['operator'], array('=', '!='))) {
            return false;
        }

        $route = $this->route->get();
        return $this->compare($route['pattern'], $condition['value'], $condition['operator']);
    }
public function route ( array $ condition ) { if ( ! in_array ( $ condition [ 'operator' ] , array ( '=' , '!=' ) ) ) { return false ; } $ route = $ this -> route -> get ( ) ; return $ this -> compare ( $ route [ 'pattern' ] , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; }
Returns true if route condition is met
@param array $condition
@return boolean
Returns true if route condition is met