public function Container::getServiceIds

Gets all service ids.

Return value

array An array of all defined service ids

1 call to Container::getServiceIds()
ContainerBuilder::getServiceIds in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
Gets all service ids.
1 method overrides Container::getServiceIds()
ContainerBuilder::getServiceIds in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
Gets all service ids.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php, line 335

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function getServiceIds() {
  $ids = array();
  $r = new \ReflectionClass($this);
  foreach ($r
    ->getMethods() as $method) {
    if (preg_match('/^get(.+)Service$/', $method->name, $match)) {
      $ids[] = self::underscore($match[1]);
    }
  }
  return array_unique(array_merge($ids, array_keys($this->services)));
}