Documentation

RealServiceInstantiator
in package
implements InstantiatorInterface

{@inheritdoc}

Noop proxy instantiator - produces the real service instead of a proxy instance.

Tags
author

Marco Pivetta ocramius@gmail.com

Interfaces, Classes and Traits

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

Table of Contents

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

Zero-argument callback that is capable of producing the real service instance

Return values
object

Search results