$app
$app : \Charcoal\App\App
The route manager takes care of dispatching each route from an app or a module config
$app : \Charcoal\App\App
setApp(\Charcoal\App\App $app) : \Charcoal\App\AppAwareInterface
\Charcoal\App\App | $app | The app instance this object depends on. |
Chainable
app() : \Charcoal\App\App
setupTemplate(string $routeIdent, array|\ArrayAccess $templateConfig) : \Slim\Route
Add template route.
Typically for a GET request, the route will render a template.
string | $routeIdent | The template's route identifier. |
array|\ArrayAccess | $templateConfig | The template's config for the route. |
setupAction(string $routeIdent, array|\ArrayAccess $actionConfig) : \Slim\Route
Add action route.
Typically for a POST request, the route will execute an action (returns JSON).
string | $routeIdent | The action's route identifier. |
array|\ArrayAccess | $actionConfig | The action's config for the route. |
setupScript(string $routeIdent, array|\ArrayAccess $scriptConfig) : \Slim\Route
Add script route.
Typically used for a CLI interface, the route will execute a script.
string | $routeIdent | The script's route identifier. |
array|\ArrayAccess | $scriptConfig | The script's config for the route. |