protected function afterAction($action, $request, $response)
{
if ($action instanceof Closure) {
return;
}
list($object, $method) = $action;
if (method_exists($object, 'after')) {
call_user_func([$object, 'after'], $method, $request, $response);
}
}