You are here

protected function UrlMatcher::getExpressionLanguage in Zircon Profile 8

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

File

vendor/symfony/routing/Matcher/UrlMatcher.php, line 240

Class

UrlMatcher
UrlMatcher matches URL based on a set of routes.

Namespace

Symfony\Component\Routing\Matcher

Code

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