https://github.com/thecodingmachine/graphqlite-universal-service-provider
Cross-framework module for GraphQLite using container-interop/service-provider
https://github.com/thecodingmachine/graphqlite-universal-service-provider
Last synced: 5 months ago
JSON representation
Cross-framework module for GraphQLite using container-interop/service-provider
- Host: GitHub
- URL: https://github.com/thecodingmachine/graphqlite-universal-service-provider
- Owner: thecodingmachine
- Created: 2019-02-04T16:31:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T21:11:55.000Z (over 4 years ago)
- Last Synced: 2025-04-11T18:59:48.077Z (7 months ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 2
- Watchers: 8
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/thecodingmachine/graphqlite-universal-service-provider)
[](https://packagist.org/packages/thecodingmachine/graphqlite-universal-service-provider)
[](https://packagist.org/packages/thecodingmachine/graphqlite-universal-service-provider)
[](https://travis-ci.org/thecodingmachine/graphqlite-universal-service-provider)
[](https://coveralls.io/github/thecodingmachine/graphqlite-universal-service-provider?branch=master)
# WORK IN PROGRESS
# GraphQLite universal module
This package integrates GraphQLite in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.
## Installation
```
composer require thecodingmachine/graphqlite-universal-service-provider
```
Once installed, you need to register the [`TheCodingMachine\GraphQLiteServiceProvider`](src/GraphQLiteServiceProvider.php) into your container.
If your container supports [thecodingmachine/discovery](https://github.com/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