protected function resolve()
    {
        $extensionsManager = $this->getServiceLocator()->get(\common_ext_ExtensionsManager::SERVICE_ID);
        $installed = $extensionsManager->getInstalledExtensionsIds();
        foreach ($installed as $extId) {
            $extension = $extensionsManager->getExtensionById($extId);
            foreach ($this->getRoutes($extension) as $entry) {
                /** @var Route $route */
                $route = $entry['route'];
                $called = $route->resolve($this->getRequest());
                if ($called !== null) {
                    list($controller, $action) = explode('@', $called);
                    $this->controller = $controller;
                    $this->action = $action;
                    $this->extensionId = $entry['extId'];

                    return true;
                }
            }
        }

        throw new \ResolverException('Unable to resolve '.$this->request->getUri()->getPath());
    }
protected function resolve()
    {
        $extensionsManager = $this->getServiceLocator()->get(\common_ext_ExtensionsManager::SERVICE_ID);
        $installed = $extensionsManager->getInstalledExtensionsIds();
        foreach ($installed as $extId) {
            $extension = $extensionsManager->getExtensionById($extId);
            foreach ($this->getRoutes($extension) as $entry) {
                /** @var Route $route */
                $route = $entry['route'];
                $called = $route->resolve($this->getRequest());
                if ($called !== null) {
                    list($controller, $action) = explode('@', $called);
                    $this->controller = $controller;
                    $this->action = $action;
                    $this->extensionId = $entry['extId'];

                    return true;
                }
            }
        }

        throw new \ResolverException('Unable to resolve '.$this->request->getUri()->getPath());
    }
protected function resolve ( ) { $ extensionsManager = $ this -> getServiceLocator ( ) -> get ( \ common_ext_ExtensionsManager :: SERVICE_ID ) ; $ installed = $ extensionsManager -> getInstalledExtensionsIds ( ) ; foreach ( $ installed as $ extId ) { $ extension = $ extensionsManager -> getExtensionById ( $ extId ) ; foreach ( $ this -> getRoutes ( $ extension ) as $ entry ) { /** @var Route $route */ $ route = $ entry [ 'route' ] ; $ called = $ route -> resolve ( $ this -> getRequest ( ) ) ; if ( $ called !== null ) { list ( $ controller , $ action ) = explode ( '@' , $ called ) ; $ this -> controller = $ controller ; $ this -> action = $ action ; $ this -> extensionId = $ entry [ 'extId' ] ; return true ; } } } throw new \ ResolverException ( 'Unable to resolve ' . $ this -> request -> getUri ( ) -> getPath ( ) ) ; }
Tries to resolve the current request using the routes first
and then falls back to the legacy controllers
@return bool
@throws \ResolverException
@throws \common_exception_InconsistentData
@throws \common_ext_ManifestNotFoundException
Tries to resolve the current request using the routes first and then falls back to the legacy controllers