public static function ContainerBuilder::getServiceConditionals

Returns the Service Conditionals.

Parameters

mixed $value An array of conditionals to return.:

Return value

array An array of Service conditionals

2 calls to ContainerBuilder::getServiceConditionals()
ContainerBuilder::callMethod in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
PhpDumper::wrapServiceConditionals in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Wraps the service conditionals.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 1071

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

public static function getServiceConditionals($value) {
  $services = array();
  if (is_array($value)) {
    foreach ($value as $v) {
      $services = array_unique(array_merge($services, self::getServiceConditionals($v)));
    }
  }
  elseif ($value instanceof Reference && $value
    ->getInvalidBehavior() === ContainerInterface::IGNORE_ON_INVALID_REFERENCE) {
    $services[] = (string) $value;
  }
  return $services;
}