Wiggum
a php framework
The Application, (or wiggum\foundation\Application) is the heart and soul of your Wiggum application and is used to register your configs, routes, middleware and services The Application object is attached to all your controllers are a property automaticlly.
You have the base path of your applicaiton available to you. Below examples shows how you would access it in your Controller.
<?php
$this->app->basePath
?>You have all your config varibles and arrays available to you. See configuration for more detail.
You have all your services avalible to you.
| Method | Parameters | Description |
|---|---|---|
addService |
$name $service |
|
addMiddleware |
$middleware |
|
getContainer |
- | |
getMiddleware |
- | |
getBasePath |
- | |
setBasePath |
$basePath |
|
loadConfig |
array $config |
|
loadBootFiles |
- | |
loadEnvironment |
$name | |
get |
$name |