Trait FileConfigTrait
Trait providing utility methods for file based config engines.
Direct Users
Properties summary
-
$_pathprotectedstringThe path this engine finds files on.
Method Summary
-
_getFilePath() protected
Get file path
Method Detail
_getFilePath() 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
string
Full file path
Full file path
Throws
Cake\Core\Exception\ExceptionWhen files don't exist or when files contain '..' as this could lead to abusive reads.