You are here

public function ArgumentsResolver::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Utility/ArgumentsResolver.php \Drupal\Component\Utility\ArgumentsResolver::__construct()

Constructs a new ArgumentsResolver.

Parameters

array $scalars: An associative array of parameter names to scalar candidate values.

object[] $objects: An associative array of parameter names to object candidate values.

object[] $wildcards: An array object candidates tried on every parameter regardless of its name.

File

lib/Drupal/Component/Utility/ArgumentsResolver.php, line 47
Contains \Drupal\Component\Utility\ArgumentsResolver.

Class

ArgumentsResolver
Resolves the arguments to pass to a callable.

Namespace

Drupal\Component\Utility

Code

public function __construct(array $scalars, array $objects, array $wildcards) {
  $this->scalars = $scalars;
  $this->objects = $objects;
  $this->wildcards = $wildcards;
}