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

Breadcrumb

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

function ServicesConfigurator::get

Gets an already defined service definition.

Throws

ServiceNotFoundException if the service definition does not exist

File

vendor/symfony/dependency-injection/Loader/Configurator/ServicesConfigurator.php, line 139

Class

ServicesConfigurator
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator

Code

public final function get(string $id) : ServiceConfigurator {
    $definition = $this->container
        ->getDefinition($id);
    return new ServiceConfigurator($this->container, $definition->getInstanceofConditionals(), true, $this, $definition, $id, []);
}
RSS feed
Powered by Drupal