zestic/graphql-component
最新稳定版本:v0.19.0
Composer 安装命令:
composer require zestic/graphql-component
包简介
GraphQL component
README 文档
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
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-14