You are here

private function PhpMatcherDumper::getExpressionLanguage in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Matcher/Dumper/PhpMatcherDumper.php \Symfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper::getExpressionLanguage()

File

vendor/symfony/routing/Matcher/Dumper/PhpMatcherDumper.php, line 398

Class

PhpMatcherDumper
PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.

Namespace

Symfony\Component\Routing\Matcher\Dumper

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;
}