tobento / service-resolver-container
Container resolver implementation.
1.0.1
2023-11-29 18:26 UTC
Requires
- php: >=8.0
- psr/container: ^2.0
- tobento/service-container: ^1.0
- tobento/service-resolver: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- vimeo/psalm: ^4.0
README
Resolver container implementation.
Table of Contents
Getting started
Add the latest version of the autowire service running this command.
composer require tobento/service-resolver-container
Requirements
- PHP 8.0 or greater
Highlights
- Framework-agnostic, will work with any project
Documentation
Resolver Factory
use Tobento\Service\ResolverContainer\ResolverFactory; use Tobento\Service\Resolver\ResolverFactoryInterface; use Tobento\Service\Resolver\ResolverInterface; $resolverFactory = new ResolverFactory(); var_dump($resolverFactory instanceof ResolverFactoryInterface); // bool(true) // create resolver $resolver = $resolverFactory->createResolver(); var_dump($resolver instanceof ResolverInterface); // bool(true)
Visit Resolver Service to learn more about the resolver.