Closed zikezhang closed 1 year ago
update Phalcon\Cache\CacheFactory; to Phalcon\Config\ConfigFactory;
for instance:
use Phalcon\Cache\CacheFactory; $fileName = '/app/storage/config.php'; $factory = new ConfigFactory(); $options = [ 'adapter' => 'php', 'filePath' => $fileName, ]; $config = $factory->load($options);
the namespace should be Phalcon\Config\ConfigFactory;
Thank you @zikezhang
update Phalcon\Cache\CacheFactory; to Phalcon\Config\ConfigFactory;
for instance:
the namespace should be Phalcon\Config\ConfigFactory;