Trait FileConfigTrait
Trait providing utility methods for file based config engines.
Namespace: Cake\Core\Configure
Property Summary
-
$_path protected
string
The path this engine finds files on.
Method Summary
-
_getFilePath() protected
Get file path
Method Detail
_getFilePath() ¶ protected
_getFilePath(string $key, bool $checkExists = false): string
Get file path
Parameters
-
string
$key The identifier to write to. If the key has a . it will be treated as a plugin prefix.
-
bool
$checkExists optional Whether to check if file exists. Defaults to false.
Returns
string
Throws
Cake\Core\Exception\CakeException
When files don't exist or when files contain '..' as this could lead to abusive reads.