/** * @param InvokeEvent $event */ public function onAfterInvoke(InvokeEvent $event) { if (!$this->stopwatch) { return; } $this->stopwatch->stop('invoke ' . $event->getDirectRequest()->getRequestKey()); }
/** * @param InvokeEvent $event */ public function onAfterInvoke(InvokeEvent $event) { $event->setResult($this->converter->convert($event->getService(), $event->getResult())); }