DependencyInjection/OverblogGraphiQLExtension.php
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');

        $container->setParameter('overblog_graphiql.endpoint_resolver', $config['endpoint_resolver']);

        $graphiQLViewConfigJSLibraries = $container->getDefinition('overblog_graphiql.view.config.javascript_libraries');
        $graphiQLViewConfigJSLibraries->setArguments([
            $config['javascript_libraries']['graphiql'],
            $config['javascript_libraries']['react'],
            $config['javascript_libraries']['fetch'],
        ]);

        $graphiQLViewConfig = $container->getDefinition('overblog_graphiql.view.config');
        $graphiQLViewConfig->setArguments([
            new Reference('overblog_graphiql.view.config.javascript_libraries'),
            $config['template'],
        ]);
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');

        $container->setParameter('overblog_graphiql.endpoint_resolver', $config['endpoint_resolver']);

        $graphiQLViewConfigJSLibraries = $container->getDefinition('overblog_graphiql.view.config.javascript_libraries');
        $graphiQLViewConfigJSLibraries->setArguments([
            $config['javascript_libraries']['graphiql'],
            $config['javascript_libraries']['react'],
            $config['javascript_libraries']['fetch'],
        ]);

        $graphiQLViewConfig = $container->getDefinition('overblog_graphiql.view.config');
        $graphiQLViewConfig->setArguments([
            new Reference('overblog_graphiql.view.config.javascript_libraries'),
            $config['template'],
        ]);
    }
{@inheritdoc}