$loader
$loader : \Composer\Autoload\ClassLoader
Composer loader instance
App Loading class
$errors : \FW\Utils\Errors
Errors instance
$logger : \FW\Utils\Logger
Logger instance
$config : \FW\Config\PhpConfig
Config instance
load(\FW\string $appCode, array $modules = null) : \FW\Structures\App
Loads an app into a partial or full loaded state based on provided app meta data.
\FW\string | $appCode | |
array | $modules | Modules to load |
The booted app instance
loadApp(array $appMeta, boolean $parentContainer = null) : \FW\Structures\App
Load an app
array | $appMeta | App metadata |
boolean | $parentContainer | If the app is being booted as a dependent, this has access to the parent container. |
Application instance
loadAddon(string $name, array $addonData, \FW\Utils\Container $container)
Load an addon
string | $name | Addon name |
array | $addonData | addon metadata |
\FW\Utils\Container | $container | Container instance |
autoload(string $name, string $path)
This adds an app or addon to the composer autoload function The reason this exists is so that we don't have to override the composer.json file every time we install an app (that would get rather tedious)
string | $name | App/Addon name (as loaded/parsed from the fw.json file) |
string | $path | path to the app/addon folder |