tobento/service-resolver-container

Container resolver implementation.

1.0.1 2023-11-29 18:26 UTC

This package is auto-updated.

Last update: 2024-10-29 20:24:14 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