Hey guys,
i'm using \Phalcon\Cache\Frontend\Json but i wanted to set additional options for the json_encode function in here: https://api.phalcon.io/source/Phalcon/Cache/Frontend/Json.html
I've tried to overwrite beforeStore in my services file but without success.
$di->set('cache', function() use ($config) {
$frontend = new \Phalcon\Cache\Frontend\Json(array('lifetime' => 172800));
$frontend->beforeStore = function($data) {
die('Yay we are here');
};
....
Any suggestions?