Trait FileConfigTrait

Trait providing utility methods for file based config engines.

Direct Known Users

Cake\Core\Configure\Engine\IniConfig, Cake\Core\Configure\Engine\JsonConfig, Cake\Core\Configure\Engine\PhpConfig

Method Detail

_getFilePathsource 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

Throws

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

Properties summary

$_pathsource

protected string

The path this engine finds files on.

''

© 2005–2016 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.
http://api.cakephp.org/3.1/class-Cake.Core.Configure.FileConfigTrait.html