I'm building an app that has 2 sets of config parameters: - A first set loaded from an INI file with * \Phalcon\Config\Adapter\Ini (platfom config) - And a second one coming dynamically from the database. This second config is loaded into a * \Phalcon\Config
Funny behaviour when I try to merge those 2 objects using the provided "merge" method:
$oDynConf->merge($oIniConf); ==> works fine.
$oIniConf->merge($oDynConf); ==> Invalid callback Phalcon\Config\Adapter\Ini::merge, cannot access private method Phalcon\Config\Adapter\Ini::merge() in /data/www/nis/app/config/dynamic-config.php at line 37
Am I doing something wrong or is there a scope issue there. Seems like despite inheriting from \Phalcon config, the \adapter can merge properly.