Allow library objects to be added by reference to the autoloaded library class.
This commit is contained in:
parent
2ae192b286
commit
c74967f2a2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue