merged branch jpauli/patch-2 (PR #2854)

Commits
-------

7fadd08 static::$privateField is an OOP non-sense (extending the class is not possible)

Discussion
----------

static::$privateField is an OOP non-sense (extending the class is not possible)

static::$privateField is an OOP non-sense (extending the class is not possible)
This commit is contained in:
Fabien Potencier 2011-12-12 18:05:55 +01:00
commit eedd856f6d

View File

@ -285,11 +285,11 @@ class Route
$class = $this->getOption('compiler_class');
if (!isset(static::$compilers[$class])) {
static::$compilers[$class] = new $class;
if (!isset(self::$compilers[$class])) {
self::$compilers[$class] = new $class;
}
return $this->compiled = static::$compilers[$class]->compile($this);
return $this->compiled = self::$compilers[$class]->compile($this);
}
private function sanitizeRequirement($key, $regex)