thecodingmachine / graphqlite-universal-service-provider
Cross-framework module for GraphQLite using container-interop/service-provider
Requires
Requires (Dev)
- mnapoli/simplex: ^0.5
- php-coveralls/php-coveralls: ^2.2.0
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^8.0.0
- squizlabs/php_codesniffer: ^3.3.1
- thecodingmachine/phpstan-strict-rules: ^0.12
- thecodingmachine/symfony-cache-universal-module: ^1
Suggests
- thecodingmachine/symfony-cache-universal-module: To provide a PSR-16 cache
This package is auto-updated.
Last update: 2025-03-01 00:30:34 UTC
README
WORK IN PROGRESS
GraphQLite universal module
This package integrates GraphQLite in any container-interop compatible framework/container.
Installation
composer require thecodingmachine/graphqlite-universal-service-provider
Once installed, you need to register the TheCodingMachine\GraphQLiteServiceProvider
into your container.
If your container supports thecodingmachine/discovery integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register service providers.
Introduction
This service provider is meant to [fill purpose here].
Expected values / services
This service provider expects the following configuration / services to be available:
Name | Compulsory | Description |
---|---|---|
graphqlite.namespace.controllers |
yes | An array containing the namespaces where GraphQL controllers are stored |
graphqlite.namespace.types |
yes | An array containing the namespaces where GraphQL types are stored |
Psr\SimpleCache\CacheInterface |
yes | A PSR-16 cache service |
Doctrine\Common\Annotations\Reader |
no | A Doctrine annotation reader |
TheCodingMachine\GraphQLite\Security\AuthenticationServiceInterface |
no | A service to plug authentication to GraphQLite. If not passed, the FailAuthenticationService is used instead. |
TheCodingMachine\GraphQLite\Security\AuthorizationServiceInterface |
no | A service to plug authorization to GraphQLite. If not passed, the FailAuthorizationService is used instead. |
Provided services
This service provider provides the following services:
Service name | Description |
---|---|
service_name |
Definition |
Extended services
This service provider extends those services:
Name | Compulsory | Description |
---|---|---|
service_name |
yes | Definition |
Project template courtesy of thecodingmachine/service-provider-template