Skip to content
Snippets Groups Projects
Commit a6fbec6a authored by Helmut Hummel's avatar Helmut Hummel
Browse files

[FOLLOWUP][BUGFIX] Respect interfaces as well when checking class existence

Add accidentally forgotten guard clause for case insensitivity.

Releases: master, 6.2
Resolves: #65434
Change-Id: I374a7201f3c5ef356883302fc0825f9a02ef0c30
Reviewed-on: http://review.typo3.org/37423


Reviewed-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Tested-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
parent 7d181826
No related merge requests found
......@@ -100,7 +100,10 @@ class ClassAliasLoader {
*/
public function loadClass($className) {
if (!$this->caseSensitiveClassLoading) {
$className = strtolower($className);
$lowerCasedClassName = strtolower($className);
if ($this->composerClassLoader->findFile($lowerCasedClassName)) {
return $this->composerClassLoader->loadClass($lowerCasedClassName);
}
}
return $this->composerClassLoader->loadClass($className);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment