I have got installed Incubator 1.3.0 dev and a code like below:
$data = new \Phalcon\Config\Adapter\Yaml($file, array(
'!decrypt' => function($value) {
return (new \Phalcon\Crypt)->setCipher('blowfish')->decryptBase64($value, SECRET);
},
'!approot' => function($value) {
return ROOT_PATH . $value;
}
));
The problem which I have is that I am getting this error:
Fatal error: Uncaught exception 'BadMethodCallException' with message 'Wrong number of parameters' in ...../app/engine/Config.php:86
Does anyone maybe know how can I sort this, as it would be nice to have got encrypted passwords in configuration files.