public static function createVarDumpConnection(ContainerInterface $container): Connection
    {
        $resolvedOptions  = self::resolveOptions($container->get('config'));
        $contextProviders = [];

        if ($container->has(ServerRequestInterface::class) && $container->has(RequestContextProvider::class)) {
            $contextProviders['request'] = $container->get(RequestContextProvider::class);
        }

        if ($container->has(SourceContextProvider::class)) {
            $contextProviders['source'] = $container->get(SourceContextProvider::class);
        }

        return new Connection(
            $resolvedOptions['debug_server']['host'],
            $contextProviders
        );
    }
public static function createVarDumpConnection(ContainerInterface $container): Connection
    {
        $resolvedOptions  = self::resolveOptions($container->get('config'));
        $contextProviders = [];

        if ($container->has(ServerRequestInterface::class) && $container->has(RequestContextProvider::class)) {
            $contextProviders['request'] = $container->get(RequestContextProvider::class);
        }

        if ($container->has(SourceContextProvider::class)) {
            $contextProviders['source'] = $container->get(SourceContextProvider::class);
        }

        return new Connection(
            $resolvedOptions['debug_server']['host'],
            $contextProviders
        );
    }
public static function createVarDumpConnection ( ContainerInterface $ container ) : Connection { $ resolvedOptions = self :: resolveOptions ( $ container -> get ( 'config' ) ) ; $ contextProviders = [ ] ; if ( $ container -> has ( ServerRequestInterface :: class ) && $ container -> has ( RequestContextProvider :: class ) ) { $ contextProviders [ 'request' ] = $ container -> get ( RequestContextProvider :: class ) ; } if ( $ container -> has ( SourceContextProvider :: class ) ) { $ contextProviders [ 'source' ] = $ container -> get ( SourceContextProvider :: class ) ; } return new Connection ( $ resolvedOptions [ 'debug_server' ] [ 'host' ] , $ contextProviders ) ; }
Create a new VarDump Connection instance.

@param \Psr\Container\ContainerInterface $container

@return \Symfony\Component\VarDumper\Server\Connection
Create a new VarDump Connection instance .