How to read file with get_file_contents in the config directory?

I created a file auth_api.key, is a json file with key
{ key: “stringkey”}

how to read with get_file_contents($path); ?

its possible? what path?

CakePHP 3 have constant variable: CONFIG

get_file_contents(CONFIG . 'file_name.json');

Read more