Documentation

LazyServiceInstantiator
in package
implements InstantiatorInterface

FinalYes
Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

Interfaces

InstantiatorInterface
Lazy proxy instantiator, capable of instantiating a proxy given a container, the service definitions and a callback that produces the real service instance.

Methods

instantiateProxy()  : object
Instantiates a proxy object.

Methods

instantiateProxy()

Instantiates a proxy object.

public instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstantiator) : object
Parameters
$container : ContainerInterface
$definition : Definition
$id : string

Identifier of the requested service

$realInstantiator : callable

A callback that is capable of producing the real service instance

Return values
object

        
On this page

Search results