Fixes #5643 ModulesClassLoader autoload module code without composer install (#5644)
commit592adae6c1b742b380a8b1a3f61035f9fc2f4bac
authorStephen Nielson <snielson@discoverandchange.com>
Thu, 11 Aug 2022 19:32:52 +0000 (11 15:32 -0400)
committerGitHub <noreply@github.com>
Thu, 11 Aug 2022 19:32:52 +0000 (11 15:32 -0400)
tree05b914b3745894436c7f81447f5812c6ffea7cc0
parent692311fc02a016e7c5c2c3a2c90cafcdabbf693e
Fixes #5643 ModulesClassLoader autoload module code without composer install (#5644)

* Fixes #5643 ModulesClassLoader

Implemented a modules class loader that allow module writers to register
a namespace if its not already been registered.  This makes it so the
ModuleWriter doesn't have to use requires everywhere and a module can be
just dropped into the filesystem and execute once its been registered
and installed from the Manage Modules interface.

* Style fixes
src/Core/ModulesApplication.php
src/Core/ModulesClassLoader.php [new file with mode: 0644]