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  : mixed
$loading  : mixed
$providedTypes  : mixed

Methods

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

Properties

Methods

__construct()

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

getProvidedServices()

{@inheritdoc}

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

has()

{@inheritdoc}

public has(string $id) : bool
Parameters
$id : string
Return values
bool

        
On this page

Search results