public static function ContainerBuilder::getServiceConditionals in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::getServiceConditionals()
Returns the Service Conditionals.
Parameters
mixed $value An array of conditionals to return.:
Return value
array An array of Service conditionals
3 calls to ContainerBuilder::getServiceConditionals()
- ContainerBuilder::callMethod in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - ContainerBuilder::callMethod in core/
lib/ Drupal/ Core/ DependencyInjection/ ContainerBuilder.php - A 1to1 copy of parent::callMethod.
- PhpDumper::wrapServiceConditionals in vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php - Wraps the service conditionals.
File
- vendor/
symfony/ dependency-injection/ ContainerBuilder.php, line 1020
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
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;
}