bug #9309 [Routing] Fixed unresolved class (francoispluchino)

This PR was merged into the master branch.

Discussion
----------

[Routing] Fixed unresolved class

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

d3079ee Fix unresolved class
This commit is contained in:
Fabien Potencier 2013-10-16 16:51:22 +02:00
commit bf069e0fa8

View File

@ -236,7 +236,7 @@ class UrlMatcher implements UrlMatcherInterface, RequestMatcherInterface
{
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.');
throw new \RuntimeException('Unable to use expressions as the Symfony ExpressionLanguage component is not installed.');
}
$this->expressionLanguage = new ExpressionLanguage();
}