src/Route.php
public function withContainer(ContainerInterface $container): ContainerizedInterface
    {
        $route = clone $this;
        $route->container = $container;
        if ($route->target instanceof TargetInterface) {
            $route->target = clone $route->target;
        }

        $route->pipeline = $route->makePipeline();

        return $route;
    }
public function withContainer(ContainerInterface $container): ContainerizedInterface
    {
        $route = clone $this;
        $route->container = $container;
        if ($route->target instanceof TargetInterface) {
            $route->target = clone $route->target;
        }

        $route->pipeline = $route->makePipeline();

        return $route;
    }
public function withContainer ( ContainerInterface $ container ) : ContainerizedInterface { $ route = clone $ this ; $ route -> container = $ container ; if ( $ route -> target instanceof TargetInterface ) { $ route -> target = clone $ route -> target ; } $ route -> pipeline = $ route -> makePipeline ( ) ; return $ route ; }
Associated route with given container.

@param ContainerInterface $container
@return ContainerizedInterface|$this
Associated route with given container .