You are here

public function Proxy::__setInitializer in Plug 7

Sets the initializer callback to be used when initializing the proxy. That initializer should accept 3 parameters: $proxy, $method and $params. Those are respectively the proxy object that is being initialized, the method name that triggered initialization and the parameters passed to that method.

Parameters

Closure|null $initializer:

Return value

void

1 method overrides Proxy::__setInitializer()
RuntimePublicReflectionPropertyTestProxyMock::__setInitializer in lib/doctrine/common/tests/Doctrine/Tests/Common/Reflection/RuntimePublicReflectionPropertyTest.php
Sets the initializer callback to be used when initializing the proxy. That initializer should accept 3 parameters: $proxy, $method and $params. Those are respectively the proxy object that is being initialized, the method name that triggered…

File

lib/doctrine/common/lib/Doctrine/Common/Proxy/Proxy.php, line 53

Class

Proxy
Interface for proxy classes.

Namespace

Doctrine\Common\Proxy

Code

public function __setInitializer(Closure $initializer = null);