extends class Phalcon\Config
implements Countable, ArrayAccess
Source on GitHub
Reads YAML files and converts them to Phalcon\Config objects. Given the following configuration file:
phalcon:
baseuri: /phalcon/
controllersDir: !approot /app/controllers/
models:
metadata: memory
You can read it as follows:
define('APPROOT', dirname(__DIR__));
$config = new Phalcon\Config\Adapter\Yaml("path/config.yaml", [
'!approot' => function($value) {
return APPRO