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

This commit is contained in:
jpauli 2011-12-12 17:52:53 +01:00
parent 3dbe59edcb
commit 7fadd089a1

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)