diff --git a/src/ConfigTrait.php b/src/ConfigTrait.php index 9f8a83c5..17ab16e0 100644 --- a/src/ConfigTrait.php +++ b/src/ConfigTrait.php @@ -10,7 +10,7 @@ * 1. use Trait in your APP Class * use \Atk4\Core\ConfigTrait; * 2. create config-default.php and/or config.php file and add config values like - * $config['key'] = 'value'; + * return ['key' => 'value']; * 3. call $this->readConfig(); * before using config. */ @@ -23,8 +23,8 @@ trait ConfigTrait * Read config file or files and store it in $config property. * * Supported formats: - * php - PHP file with return ['foo'] = 'bar' structure - * json - JSON file with {'foo':'bar'} structure + * php - PHP file with return ['foo' => 'bar'] structure + * json - JSON file with { 'foo': 'bar' } structure * yaml - YAML file with yaml structure * * @param string|array $files One or more filenames