Skip to content

Commit

Permalink
PresenterFactory: removed case mismatch checks because may work incor…
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 16, 2020
1 parent 7b31a08 commit 40b285d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Application/PresenterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,7 @@ public function getPresenterClass(&$name)
throw new InvalidPresenterException("Cannot load presenter '$name', class '$class' is abstract.");
}

$this->cache[$name] = $class;

if ($name !== ($realName = $this->unformatPresenterClass($class))) {
trigger_error("Case mismatch on presenter name '$name', correct name is '$realName'.", E_USER_WARNING);
$name = $realName;
}

return $class;
return $this->cache[$name] = $class;
}


Expand Down

0 comments on commit 40b285d

Please sign in to comment.