src/main/php/routing/Routing.php
private function handleMatchingRoute(CalledUri $calledUri, Route $route): UriResource
    {
        if ($route->requiresAuth()) {
            return new ProtectedResource(
                $route->authConstraint(),
                $this->resolveResource($calledUri, $route),
                $this->injector
            );
        }

        return $this->resolveResource($calledUri, $route);
    }
private function handleMatchingRoute(CalledUri $calledUri, Route $route): UriResource
    {
        if ($route->requiresAuth()) {
            return new ProtectedResource(
                $route->authConstraint(),
                $this->resolveResource($calledUri, $route),
                $this->injector
            );
        }

        return $this->resolveResource($calledUri, $route);
    }
private function handleMatchingRoute ( CalledUri $ calledUri , Route $ route ) : UriResource { if ( $ route -> requiresAuth ( ) ) { return new ProtectedResource ( $ route -> authConstraint ( ) , $ this -> resolveResource ( $ calledUri , $ route ) , $ this -> injector ) ; } return $ this -> resolveResource ( $ calledUri , $ route ) ; }
creates a processable route for given route

@param   \stubbles\webapp\routing\CalledUri  $calledUri
@param   \stubbles\webapp\routing\Route      $route
@return  \stubbles\webapp\routing\UriResource
creates a processable route for given route