Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceLocator.php

function ServiceLocator::__invoke

File

vendor/symfony/dependency-injection/ServiceLocator.php, line 63

Class

ServiceLocator
@author Robin Chalas <robin.chalas@gmail.com> @author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\DependencyInjection

Code

public function __invoke(string $id) : mixed {
    return isset($this->factories[$id]) ? $this->get($id) : null;
}
RSS feed
Powered by Drupal