function Container::initialized
Same name in this branch
- 11.1.x core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::initialized()
Returns true if the given service has actually been initialized.
Overrides ContainerInterface::initialized
File
-
vendor/
symfony/ dependency-injection/ Container.php, line 264
Class
- Container
- Container is a dependency injection container.
Namespace
Symfony\Component\DependencyInjectionCode
public function initialized(string $id) : bool {
if (isset($this->aliases[$id])) {
$id = $this->aliases[$id];
}
if ('service_container' === $id) {
return false;
}
return isset($this->services[$id]);
}