During lunch we talked about symonfy’s “onKernelTerminate” and I got asked if cakephp has something like that.
I thought afterFilter could be an equivalent, but it’s get executed before the response is sent but after the controller’s action return.
for example if I put this in a controller’s action:
public function index(){
return $this->getResponse()->withStringBody("[]");
}
the response content will be sent after the afterFilter execution.
So, does cakephp has something like onKernelTerminate?
Without enqueuing the job and run asynchronously
Thanks