Trait FileConfigTrait
Trait providing utility methods for file based config engines.
Direct Users
- Cake\Core\Configure\Engine\IniConfig
- Cake\Core\Configure\Engine\JsonConfig
- Cake\Core\Configure\Engine\PhpConfig
Properties summary
-
$_path
protectedThe path this engine finds files on.string
Method Summary
- _getFilePath() protectedGet file path
Method Detail
_getFilePath()source protected
_getFilePath( string $key , boolean $checkExists false )
Get file path
Parameters
- string
$key
The identifier to write to. If the key has a . it will be treated as a plugin prefix.
- boolean
$checkExists
optional false - Whether to check if file exists. Defaults to false.
Returns
stringFull file path
Throws
Cake\Core\Exception\Exception
When files don't exist or when files contain '..' as this could lead to abusive reads.
Properties detail
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.3/class-Cake.Core.Configure.FileConfigTrait.html