return $r;
} private function getExpressionLanguage(): ExpressionLanguage
{ if (!
isset($this->expressionLanguage
)) { if (!
class_exists(ExpressionLanguage::
class)) { throw new LogicException('Unable to use expressions as the Symfony ExpressionLanguage component is not installed. Try running "composer require symfony/expression-language".'
);
} $providers =
$this->container->
getExpressionLanguageProviders();
$this->expressionLanguage =
new ExpressionLanguage(null,
$providers,
function Dstring
$arg): string
{ if ('""' ===
substr_replace($arg, '', 1, -1
)) { $id =
stripcslashes(substr($arg, 1, -1
));
$this->inExpression = true;
$arg =
$this->
processValue(new Reference($id));
$this->inExpression = false;
if (!
$arg instanceof Reference
) { throw new RuntimeException(sprintf('"%s::processValue()" must return a Reference when processing an expression, "%s" returned for service("%s").',
static::
class,
get_debug_type($arg),
$id));
} $arg =
sprintf('"%s"',
$arg);
}