function xautoload_Container_LazyServices::get in X Autoload 7.3
Parameters
string $key:
Return value
mixed
1 call to xautoload_Container_LazyServices::get()
- xautoload_Container_LazyServices::__get in lib/
Container/ LazyServices.php - Magic getter for a service.
File
- lib/
Container/ LazyServices.php, line 30
Class
- xautoload_Container_LazyServices
- @property xautoload_BootSchedule_Helper_PHP52|xautoload_BootSchedule_Helper_PHP53 $registrationHelper @property xautoload_BootSchedule_Interface $schedule @property xautoload_LoaderManager $loaderManager @property…
Code
function get($key) {
if (!isset($this->services[$key])) {
$this->services[$key] = $this->factory
->{$key}($this);
if (!isset($this->services[$key])) {
$this->services[$key] = FALSE;
}
}
return $this->services[$key];
}