public function invoke(Joinpoint $joinpoint) { try { $result = $joinpoint->proceed(); } catch (Exception $invocationException) { $adviceMethod = $this->adviceMethod; $adviceMethod($joinpoint); throw $invocationException; } return $result; }