function ServiceContainer::get in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/DIC/ServiceContainer.php \Drupal\xautoload\DIC\ServiceContainer::get()
Parameters
string $key:
Return value
mixed
File
- src/
DIC/ ServiceContainer.php, line 25
Class
Namespace
Drupal\xautoload\DICCode
function get($key) {
return isset($this->services[$key]) ? $this->services[$key] : ($this->services[$key] = $this->factory
->{$key}($this) ?: FALSE);
}