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

Breadcrumb

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

function service_closure

Creates a closure service reference.

8 string references to 'service_closure'
Container::resolveServicesAndParameters in core/lib/Drupal/Component/DependencyInjection/Container.php
Resolves arguments that represent services or variables to the real values.
OptimizedPhpArrayDumper::getServiceClosureCall in core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
Gets a service closure reference in a suitable PHP array format.
PhpArrayContainer::resolveServicesAndParameters in core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php
Resolves arguments that represent services or variables to the real values.
XmlDumper::convertParameters in vendor/symfony/dependency-injection/Dumper/XmlDumper.php
XmlFileLoader::getArgumentsAsPhp in vendor/symfony/dependency-injection/Loader/XmlFileLoader.php

... See full list

File

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

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator

Code

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