$view
$view : \Charcoal\View\ViewConfig
The application's view/rendering configset.
Charcoal App configuration
$cache : \Charcoal\App\Config\CacheConfig
The application's caching configset.
$logger : \Charcoal\App\Config\LoggerConfig
The application's logging configset.
$filesystem : \Charcoal\App\Config\FilesystemConfig
The application's filesystem configset.
setBasePath(string $path) : \Charcoal\App\AppConfig
Set the application's absolute root path.
Resolves symlinks with realpath() and ensure trailing slash.
string | $path | The absolute path to the application's root directory. |
If the argument is not a string.
Chainable
setPublicPath(string $path) : \Charcoal\App\AppConfig
Set the application's absolute path to the public web directory.
string | $path | The path to the application's public directory. |
If the argument is not a string.
Chainable
setBaseUrl(\Psr\Http\Message\UriInterface|string $uri) : \Charcoal\App\AppConfig
Set the application's fully qualified base URL to the public web directory.
\Psr\Http\Message\UriInterface|string | $uri | The base URI to the application's web directory. |
Chainable
setTimezone(string $timezone) : \Charcoal\App\AppConfig
Set the application's default timezone.
string | $timezone | The timezone string. |
If the argument is not a string.
Chainable
setProjectName(string|null $projectName) : \Charcoal\App\AppConfig
Sets the project name.
string|null | $projectName | The project name. |
If the project argument is not a string (or null).
Chainable
setDevMode(boolean $devMode) : \Charcoal\App\AppConfig
boolean | $devMode | The "dev mode" flag. |
Chainable
setView(array $view) : \Charcoal\App\AppConfig
array | $view | The view configuration structure to set. |
Chainable
setRoutes(array $routes) : \Charcoal\App\AppConfig
Parse the application's route configuration.
array | $routes | The route configuration structure to set. |
Chainable
setRoutables(array $routables) : \Charcoal\App\AppConfig
array | $routables | The routable configuration structure to set. |
Chainable
setHandlers(array $handlers) : \Charcoal\App\AppConfig
Define custom response and error handlers.
Slim provides five standard handlers:
array | $handlers | The handlers configuration structure to set. |
Chainable
setModules(array $modules) : \Charcoal\App\AppConfig
Set the configuration modules.
The modules are defined in a key
=>\Charcoal\App\Module\ModuleConfig
structure.
array | $modules | The module configuration structure to set. |
Chainable
setCache(array|\Charcoal\App\Config\CacheConfig $cache) : \Charcoal\App\AppConfig
array|\Charcoal\App\Config\CacheConfig | $cache | The application global cache config. |
If the argument is not an array or a config.
Chainable
cache() : \Charcoal\App\Config\CacheConfig
Get the application's global `CacheConfig`.
setLogger(array|\Charcoal\App\Config\LoggerConfig $logger) : \Charcoal\App\AppConfig
array|\Charcoal\App\Config\LoggerConfig | $logger | The global logger config. |
If the argument is not an array or a config.
Chainable
logger() : \Charcoal\App\Config\LoggerConfig
Get the application's global `LoggerConfig`
setDefaultDatabase(string $defaultDatabase) : \Charcoal\App\AppConfig
string | $defaultDatabase | The default database ident. |
If the argument is not a string.
Chainable
addDatabase(string $ident, array $config) : \Charcoal\App\AppConfig
string | $ident | The database ident. |
array | $config | The database options. |
If the arguments are invalid.
Chainable
setFilesystem(array|\Charcoal\App\Config\FilesystemConfig $filesystem) : \Charcoal\App\AppConfig
array|\Charcoal\App\Config\FilesystemConfig | $filesystem | The application global cache config. |
If the argument is not an array or a config.
Chainable
filesystem() : \Charcoal\App\Config\FilesystemConfig
Get the application's global `FilesystemConfig`