Allow library objects to be added by reference to the autoloaded library class.

This commit is contained in:
Abel Hoogeveen 2020-01-28 11:31:13 +01:00
parent 2ae192b286
commit c74967f2a2
No known key found for this signature in database
GPG Key ID: 96C2234920BF4292
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Libraries
*/
public function addLibraryClass(string $libraryName, string $libraryClass)
{
if (!class_exists($libraryClass, false))
if (!class_exists($libraryClass, true))
throw new LibraryException("Could not add library class. '" . $libraryClass . "' could not be loaded.", 1);
$this->libraryClasses[strtolower($libraryName)] = $libraryClass;