You are here

public function Container::initialized in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::initialized()

File

core/lib/Drupal/Component/DependencyInjection/Container.php, line 355

Class

Container
Provides a container optimized for Drupal's needs.

Namespace

Drupal\Component\DependencyInjection

Code

public function initialized($id) {
  if (isset($this->aliases[$id])) {
    $id = $this->aliases[$id];
  }
  return isset($this->services[$id]) || array_key_exists($id, $this->services);
}