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

Breadcrumb

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

function ServiceLocatorArgument::__construct

File

vendor/symfony/dependency-injection/Argument/ServiceLocatorArgument.php, line 24

Class

ServiceLocatorArgument
Represents a closure acting as a service locator.

Namespace

Symfony\Component\DependencyInjection\Argument

Code

public function __construct(array|TaggedIteratorArgument $values = []) {
    if ($values instanceof TaggedIteratorArgument) {
        $this->taggedIteratorArgument = $values;
        $values = [];
    }
    $this->setValues($values);
}
RSS feed
Powered by Drupal