Copied!

A trait to help implement ServiceProviderInterface.

Trait
Methods
public __construct(array $factories)
 
  • param callable[] $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
        © 2022 Bruce Wells
        Search Namespaces \ Classes
        Configuration