src/Mmi/Mvc/RouterMatcher.php
protected function _routeMatch($matches)
    {
        if (isset($this->_tmpMatches[$matches[1]])) {
            return $this->_tmpMatches[$matches[1]];
        }
        if (isset($this->_tmpDefault[$this->_tmpKey])) {
            return $this->_tmpDefault[$this->_tmpKey];
        }
        throw new \Mmi\Mvc\MvcException('Router failed due to invalid route definition - no default param for key: ' . $this->_tmpKey);
    }
protected function _routeMatch($matches)
    {
        if (isset($this->_tmpMatches[$matches[1]])) {
            return $this->_tmpMatches[$matches[1]];
        }
        if (isset($this->_tmpDefault[$this->_tmpKey])) {
            return $this->_tmpDefault[$this->_tmpKey];
        }
        throw new \Mmi\Mvc\MvcException('Router failed due to invalid route definition - no default param for key: ' . $this->_tmpKey);
    }
protected function _routeMatch ( $ matches ) { if ( isset ( $ this -> _tmpMatches [ $ matches [ 1 ] ] ) ) { return $ this -> _tmpMatches [ $ matches [ 1 ] ] ; } if ( isset ( $ this -> _tmpDefault [ $ this -> _tmpKey ] ) ) { return $ this -> _tmpDefault [ $ this -> _tmpKey ] ; } throw new \ Mmi \ Mvc \ MvcException ( 'Router failed due to invalid route definition - no default param for key: ' . $ this -> _tmpKey ) ; }
Callback dla zmieniania rout
@param array $matches dopasowania
@return mixed
@throws \Mmi\Mvc\MvcException
Callback dla zmieniania rout