17 lines
508 B
PHP
17 lines
508 B
PHP
<?php
|
|
|
|
namespace KupShop\GraphQLBundle\DependencyInjection;
|
|
|
|
use GraphQL\Server\ServerConfig;
|
|
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
class GraphQLiteConfigWiringPass implements CompilerPassInterface
|
|
{
|
|
public function process(ContainerBuilder $container): void
|
|
{
|
|
$definition = $container->getDefinition(ServerConfig::class);
|
|
$definition->addMethodCall('setQueryBatching', [true]);
|
|
}
|
|
}
|