A trait to help implement ServiceProviderInterface.
- author Robin Chalas
- author Nicolas Grekas
Trait
| Methods |
public __construct(array $factories)
|
| public get(string $id) : ?mixed |
| public getProvidedServices() : array |
| public has(string $id) : bool |
| Properties |
| private array $factories |
| private array $loading = [] |
| private array $providedTypes |
| Methods |
| private createCircularReferenceException(string $id, array $path) : Psr\Container\ContainerExceptionInterface |
| private createNotFoundException(string $id) : Psr\Container\NotFoundExceptionInterface |