https://github.com/pmall/handlers-container
Resolver producing Psr-15 request handlers from class names using a Psr-11 container
https://github.com/pmall/handlers-container
container psr-11 psr-15 request-handler resolver
Last synced: 17 days ago
JSON representation
Resolver producing Psr-15 request handlers from class names using a Psr-11 container
- Host: GitHub
- URL: https://github.com/pmall/handlers-container
- Owner: pmall
- License: mit
- Created: 2017-07-31T10:13:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T20:28:01.000Z (over 8 years ago)
- Last Synced: 2025-02-27T21:50:43.149Z (about 1 year ago)
- Topics: container, psr-11, psr-15, request-handler, resolver
- Language: PHP
- Homepage: https://github.com/ellipsephp/handlers-container
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Container request handlers resolver
This package provides a resolver producing Psr-15 request handlers from class names using a Psr-11 container.
**Require** php >= 7.1
**Installation** `composer require ellipse/handlers-container`
**Run tests** `./vendor/bin/kahlan`
- [Using the container request handlers resolver](#using-the-container-request-handlers-resolver)
## Using the container request handlers resolver
Please note the request handler instances are resolved using [ellipse/container-reflection](https://github.com/ellipsephp/container-reflection) auto-wiring feature.
Also when instances of `Psr\Http\Message\ServerRequestInterface` are needed to build a request handler instance, the one received by its `->handle()` method is injected.
```php