public function onAfterExecute(Packet $packet) { if (isset($packet['output'])) { $packet['output']['text'] = $this->formatter->format($packet['output']['text']); } return $packet; }