src/Router.php
protected function configure(RouteInterface $route): RouteInterface
    {
        if ($route instanceof ContainerizedInterface && !$route->hasContainer()) {
            // isolating route in a given container
            $route = $route->withContainer($this->container);
        }

        return $route->withPrefix($this->basePath);
    }
protected function configure(RouteInterface $route): RouteInterface
    {
        if ($route instanceof ContainerizedInterface && !$route->hasContainer()) {
            // isolating route in a given container
            $route = $route->withContainer($this->container);
        }

        return $route->withPrefix($this->basePath);
    }
protected function configure ( RouteInterface $ route ) : RouteInterface { if ( $ route instanceof ContainerizedInterface && ! $ route -> hasContainer ( ) ) { // isolating route in a given container $ route = $ route -> withContainer ( $ this -> container ) ; } return $ route -> withPrefix ( $ this -> basePath ) ; }
Configure route with needed dependencies.

@param RouteInterface $route

@return RouteInterface
Configure route with needed dependencies .