initConfig.php
Table of Contents
Functions
- initConfig() : array<string|int, mixed>
- Load a toml configuration and initialize it.
Functions
initConfig()
Load a toml configuration and initialize it.
initConfig([string $basePath = Char::EMPTY ][, string $file = 'config.toml' ][, callable(array<string|int, mixed>): array<string|int, mixed>|null $init = null ]) : array<string|int, mixed>
Delegates resolution to oihana\files\toml\resolveTomlConfig while preserving the previous behavior of returning an empty config when the file does not exist.
Parameters
- $basePath : string = Char::EMPTY
-
Base path of config
- $file : string = 'config.toml'
-
Config file name (with or without .toml)
- $init : callable(array<string|int, mixed>): array<string|int, mixed>|null = null
-
Initialize the application with the config definition.
Tags
Return values
array<string|int, mixed> —The config array definition.