private function createUri(ContainerBuilder $container, $serviceId, $uri)
    {
        $container
            ->register($serviceId, UriInterface::class)
            ->setPublic(false)
            ->setFactory([new Reference('httplug.uri_factory'), 'createUri'])
            ->addArgument($uri)
        ;
    }
private function createUri(ContainerBuilder $container, $serviceId, $uri)
    {
        $container
            ->register($serviceId, UriInterface::class)
            ->setPublic(false)
            ->setFactory([new Reference('httplug.uri_factory'), 'createUri'])
            ->addArgument($uri)
        ;
    }
private function createUri ( ContainerBuilder $ container , $ serviceId , $ uri ) { $ container -> register ( $ serviceId , UriInterface :: class ) -> setPublic ( false ) -> setFactory ( [ new Reference ( 'httplug.uri_factory' ) , 'createUri' ] ) -> addArgument ( $ uri ) ; }
Create a URI object with the default URI factory.

@param ContainerBuilder $container
@param string           $serviceId Name of the private service to create
@param string           $uri       String representation of the URI
Create a URI object with the default URI factory .