You are here

function Main::__get in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 src/Main.php \Drupal\xautoload\Main::__get()

Magic getter for service objects. This lets this class act as a proxy for the service container.

Parameters

string $key:

Return value

mixed

Overrides ServiceContainerInterface::__get

File

lib/Main.php, line 120

Class

Main

Namespace

Drupal\xautoload

Code

function __get($key) {
  return $this->services
    ->__get($key);
}