src/Service.php
public function getRouter() : RouterInterface
    {
        if (! $this->router instanceof RouterInterface) {
            $router = new Router();
            $resolver = $this->getCallbackResolver();
            if ($resolver instanceof CallbackResolverInterface) {
                $router->setCallbackResolver($resolver);
            }

            $routerCacheFile = $this->getConfiguration('routerCacheFile', false);
            if ($routerCacheFile) {
                $router->setCacheFile($routerCacheFile);
            }

            $this->router = $router;
        }

        return $this->router;
    }
public function getRouter() : RouterInterface
    {
        if (! $this->router instanceof RouterInterface) {
            $router = new Router();
            $resolver = $this->getCallbackResolver();
            if ($resolver instanceof CallbackResolverInterface) {
                $router->setCallbackResolver($resolver);
            }

            $routerCacheFile = $this->getConfiguration('routerCacheFile', false);
            if ($routerCacheFile) {
                $router->setCacheFile($routerCacheFile);
            }

            $this->router = $router;
        }

        return $this->router;
    }
public function getRouter ( ) : RouterInterface { if ( ! $ this -> router instanceof RouterInterface ) { $ router = new Router ( ) ; $ resolver = $ this -> getCallbackResolver ( ) ; if ( $ resolver instanceof CallbackResolverInterface ) { $ router -> setCallbackResolver ( $ resolver ) ; } $ routerCacheFile = $ this -> getConfiguration ( 'routerCacheFile' , false ) ; if ( $ routerCacheFile ) { $ router -> setCacheFile ( $ routerCacheFile ) ; } $ this -> router = $ router ; } return $ this -> router ; }
Get router handler

@return RouterInterface
Get router handler