I'm getting Call to undefined method when calling setEncryption method on Phalcon\Http\Respone\Cookies(). Why is this happening?
E_ERROR: Call to undefined method Phalcon\Http\Response\Cookies::setEncryption()
$di->set('cookies', function() {
$cookies = new Phalcon\Http\Response\Cookies();
$cookies->setEncryption(false);
return $cookies;
});
Thanks in advance.