$instance
$instance : \Charcoal\App\App
Store the unique instance
Charcoal App
This is the primary class with which you instantiate, configure, and run a Slim Framework application within Charcoal.
$instance : \Charcoal\App\App
Store the unique instance
$moduleManager : \Charcoal\App\Module\ModuleManager
$routeManager : \Charcoal\App\Route\RouteManager
__construct(\Charcoal\App\ContainerInterface|array $container = array())
Create new Charcoal application (and SlimApp).
Required
config
— AppConfigOptional
logger
— PSR-3 Logger\Charcoal\App\ContainerInterface|array | $container | The application's settings. |
If trying to create a new instance of a singleton.
run(boolean $silent = false) : \Psr\Http\Message\ResponseInterface
Run application.
Initialize the Charcoal application before running (with SlimApp).
boolean | $silent | If true, will run in silent mode (no response). |
The PSR7 HTTP response.
moduleManager() : \Charcoal\App\Module\ModuleManager
Retrieve the application's module manager.
routeManager() : \Charcoal\App\Route\RouteManager
Retrieve the application's route manager.