You are here

function xautoload_Container_ProxyObject::proxyGetInstance in X Autoload 7.3

Return value

mixed

1 call to xautoload_Container_ProxyObject::proxyGetInstance()
xautoload_BootSchedule_Proxy::setFinder in lib/BootSchedule/Proxy.php
The proxy finder has materialized, and needs all scheduled namespace registrations to run now.

File

lib/Container/ProxyObject.php, line 35

Class

xautoload_Container_ProxyObject

Code

function proxyGetInstance() {
  if (!isset($this->instance)) {
    $this->instance = $this
      ->proxyCreateInstance();
    foreach ($this->observers as $callback) {
      call_user_func($callback, $this->instance);
    }
    foreach ($this->scheduled as $info) {
      list($method, $args) = $info;
      call_user_func_array(array(
        $this->instance,
        $method,
      ), $args);
    }
  }
  return $this->instance;
}