Files
kupshop/bundles/KupShop/GraphQLBundle/DependencyInjection/GraphQLiteConfigWiringPass.php
2025-08-02 16:30:27 +02:00

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]);
}
}