Documentation

ServiceLocatorTrait

A trait to help implement ServiceProviderInterface.

Tags
author

Robin Chalas robin.chalas@gmail.com

author

Nicolas Grekas p@tchwork.com

Table of Contents

Properties

$factories  : array<string|int, mixed>
$loading  : array<string|int, mixed>
$providedTypes  : array<string|int, mixed>

Methods

__construct()  : mixed
get()  : mixed
getProvidedServices()  : array<string|int, mixed>
has()  : bool
createCircularReferenceException()  : ContainerExceptionInterface
createNotFoundException()  : NotFoundExceptionInterface

Properties

Methods

__construct()

public __construct(array<string, callable> $factories) : mixed
Parameters
$factories : array<string, callable>

getProvidedServices()

public getProvidedServices() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results