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

Breadcrumb

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

function service

Creates a reference to a service.

17 string references to 'service'
Container::resolveServicesAndParameters in core/lib/Drupal/Component/DependencyInjection/Container.php
Resolves arguments that represent services or variables to the real values.
ContainerLoader::supports in vendor/symfony/routing/Loader/ContainerLoader.php
DrupalServiceDynamicReturnTypeExtension::isStaticMethodSupported in vendor/mglaman/phpstan-drupal/src/Type/DrupalServiceDynamicReturnTypeExtension.php
ExpressionLanguageProvider::getFunctions in vendor/symfony/dependency-injection/ExpressionLanguageProvider.php
LazyClosure::__get in vendor/symfony/dependency-injection/Argument/LazyClosure.php

... See full list

File

vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php, line 109

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator

Code

function service(string $serviceId) : ReferenceConfigurator {
    return new ReferenceConfigurator($serviceId);
}
RSS feed
Powered by Drupal