src/Core/Configure/Engine/PhpConfig.php
public function read($key)
    {
        $file = $this->getFilePath($key, true);

        $return = include $file;
        if (!is_array($return)) {
            throw new Exception(sprintf('Config file "%s" did not return an array', $key . '.php'));
        }

        return $return;
    }
public function read($key)
    {
        $file = $this->getFilePath($key, true);

        $return = include $file;
        if (!is_array($return)) {
            throw new Exception(sprintf('Config file "%s" did not return an array', $key . '.php'));
        }

        return $return;
    }
Read a config file and return its contents.

Files with `.` in the name will be treated as values in plugins. Instead of
reading from the initialized path, plugin keys will be located using Plugin::path().

@param string $key The identifier to read from. If the key has a . it will be treated
as a plugin prefix.

@return array Parsed configuration values.

@throws \Skinny\Core\Exception\Exception when files don't exist or they don't contain `$config`.
Or when files contain '..' as this could lead to abusive reads.