You are here

private function ContainerBuilder::getExpressionLanguage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::getExpressionLanguage()

File

vendor/symfony/dependency-injection/ContainerBuilder.php, line 1118

Class

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

Namespace

Symfony\Component\DependencyInjection

Code

private function getExpressionLanguage() {
  if (null === $this->expressionLanguage) {
    if (!class_exists('Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage')) {
      throw new RuntimeException('Unable to use expressions as the Symfony ExpressionLanguage component is not installed.');
    }
    $this->expressionLanguage = new ExpressionLanguage(null, $this->expressionLanguageProviders);
  }
  return $this->expressionLanguage;
}