tobento/service-resolver-container

Container resolver implementation.

1.0.0 2022-01-15 18:38 UTC

This package is auto-updated.

Last update: 2022-09-15 20:19:41 UTC


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.

Credits