protected function findAlias($path)
    {
        $routes = $this->getList();
        $alias = $this->db->fetch('SELECT entity, entity_id FROM alias WHERE alias=?', array($path));

        foreach ($routes as $pattern => $route) {

            if (isset($route['status']) && empty($route['status'])) {
                unset($routes[$pattern]);
                continue;
            }

            if (empty($route['handlers']['alias'])) {
                unset($routes[$pattern]);
                continue;
            }

            $this->callAliasController($pattern, $path, $alias);
        }

        return $routes;
    }
protected function findAlias($path)
    {
        $routes = $this->getList();
        $alias = $this->db->fetch('SELECT entity, entity_id FROM alias WHERE alias=?', array($path));

        foreach ($routes as $pattern => $route) {

            if (isset($route['status']) && empty($route['status'])) {
                unset($routes[$pattern]);
                continue;
            }

            if (empty($route['handlers']['alias'])) {
                unset($routes[$pattern]);
                continue;
            }

            $this->callAliasController($pattern, $path, $alias);
        }

        return $routes;
    }
protected function findAlias ( $ path ) { $ routes = $ this -> getList ( ) ; $ alias = $ this -> db -> fetch ( 'SELECT entity, entity_id FROM alias WHERE alias=?' , array ( $ path ) ) ; foreach ( $ routes as $ pattern => $ route ) { if ( isset ( $ route [ 'status' ] ) && empty ( $ route [ 'status' ] ) ) { unset ( $ routes [ $ pattern ] ) ; continue ; } if ( empty ( $ route [ 'handlers' ] [ 'alias' ] ) ) { unset ( $ routes [ $ pattern ] ) ; continue ; } $ this -> callAliasController ( $ pattern , $ path , $ alias ) ; } return $ routes ; }
Try to find and call an alias handler using the URL path
@param string $path
@return array An array of active routes which don't support aliases
Try to find and call an alias handler using the URL path