App::getRoutesConfig
Usage
array App::getRoutesConfig([string $filename = 'routes.yml'], [bool $ignore_cache = false])Description
Read the defined YAML file from within the /boot/ direcotry. Only used for the routes.yml and site.yml files.Parameters
Parameter | Required | Type | Description |
---|---|---|---|
$filename | No | string | The filename within /boot/ directory to read. Defaults to routes.yml. |
$ignore_cache | No | ?bool | Upon first reading the file it's stored in memory for any future calls. If set to true, will read the file again from disk and not sed version stored in memory. |
Return Value
The contents of the YAML file in array format.Examples
Read the routes.yml file
$routes = $app->getRoutesConfig();