You are here

function ServiceContainerInterface::__get in X Autoload 7.4

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

Retrieves a lazy-instantiated service.

Parameters

string $key: A key to specify a service.

Return value

mixed The service for the given key. Usually an object.

2 methods override ServiceContainerInterface::__get()
Main::__get in lib/Main.php
Magic getter for service objects. This lets this class act as a proxy for the service container.
ServiceContainer::__get in lib/DIC/ServiceContainer.php
Magic getter for a service.

File

lib/DIC/ServiceContainerInterface.php, line 37

Class

ServiceContainerInterface
@property Main $main @property ClassFinderAdapter $adapter @property ClassMapGeneratorInterface $classMapGenerator @property ClassMapGenerator $classMapGeneratorRaw @property CacheManager $cacheManager @property ProxyClassFinder $proxyFinder @property…

Namespace

Drupal\xautoload\DIC

Code

function __get($key);