zestic / graphql-component
GraphQL component
v0.19.1
2026-03-01 01:02 UTC
Requires
- php: ^8.3 || ^8.4
- firebase/php-jwt: ^7.0
- laminas/laminas-diactoros: ^2.6 || ^3.5
- laminas/laminas-servicemanager: ^4.0
- netglue/laminas-messenger: ^2.0
- psr/container: ^1.0 || ^2.0
- psr/log: ^2.0 || ^3.0
- zestic/app-library: ^v0.13.0|^v0.14.0
- zestic/contracts: ^0.2
- zestic/webonxy-middleware: ^1.1.0
Requires (Dev)
- phpunit/phpunit: ^10
This package is auto-updated.
Last update: 2026-05-29 02:06:32 UTC
README
Bridge between Webonxy and Symfony Messenger
All messages must extend GraphQLMessage
There is a new auto wire feature It can cause your request to take several seconds. You'll need to make sure you have
ConfigAggregator::ENABLE_CACHE set to true.
ConfigAggregator::ENABLE_CACHE => true,
For everything not autowired, it can be added manually. Config
'graphQL' => [ 'mutations' => [ 'addEmailToList' => App\Domain\Message\Mutation\AddEmailToListMessage::class, 'addEmailToList' => [ 'bus' => 'messenger.not-default-bus', \\ optional 'handler' => App\Domain\Handler\Mutation\AddEmailToListHandler::class, 'message' => App\Domain\Message\Mutation\AddEmailToListMessage::class, ], ], 'queries' => [ 'ping' => [ 'bus' => 'messenger.not-default-bus', \\ optional 'handler' => App\Domain\Handler\Query\PingHandler::class, 'message' => App\Domain\Message\Query\PingMessage::class, ], ], 'middleware' => [ 'allowedHeaders' => [ 'application/graphql', 'application/json', ], ], 'schema' => App\GraphQL\Schema::class, ];
In config.php add the ConfigProcess.php class to the post processors
$postProcessors = [ \Zestic\GraphQL\ConfigProcessor::class, ]; $aggregator = new ConfigAggregator([ ... ], $cacheConfig['config_cache_path'], $postProcessors); return $aggregator->getMergedConfig();
This will wire up the connections between the handlers and messages in Symfony Messenger
and it also builds the config for the RequestDispatcher