W3cubDocs

/Symfony 4.1

ServiceLocator

class ServiceLocator implements ContainerInterface

Methods

__construct(array $factories)
has($id)

{@inheritdoc}

get($id)

{@inheritdoc}

__invoke($id)
withContext($externalId, Container $container)

Details

__construct(array $factories)

Parameters

array $factories

has($id)

{@inheritdoc}

Parameters

$id

get($id)

{@inheritdoc}

Parameters

$id

__invoke($id)

Parameters

$id

withContext($externalId, Container $container)

Parameters

$externalId
Container $container

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/ServiceLocator.html