\Cake\Core\ConfigureFileConfigTrait

Trait providing utility methods for file based config engines.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
_getFilePath()
$_path
N/A
No private methods found
No private properties found
N/A

Properties

$_path

$_path : string

The path this engine finds files on.

Type

string

Methods

_getFilePath()

_getFilePath(string  $key, boolean  $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.

boolean $checkExists

Whether to check if file exists. Defaults to false.

Throws

\Cake\Core\Exception\Exception

When files don't exist or when files contain '..' as this could lead to abusive reads.

Returns

string —

Full file path