original_string: public function terminate()
      {
          /** @var EventHandler $eventHandler */
          $eventHandler = $this->getService('event-handler');
  
          $eventHandler->getEvent(TerminateApplication::class)->attach(new LogBeforeTerminate());
          $eventHandler->getEvent(TerminateApplication::class)->attach(new ExitApplication());
  
          $eventHandler->fire(TerminateApplication::class, ['app' => $this]);
      }
code: public function terminate()
      {
          /** @var EventHandler $eventHandler */
          $eventHandler = $this->getService('event-handler');
  
          $eventHandler->getEvent(TerminateApplication::class)->attach(new LogBeforeTerminate());
          $eventHandler->getEvent(TerminateApplication::class)->attach(new ExitApplication());
  
          $eventHandler->fire(TerminateApplication::class, ['app' => $this]);
      }
code_tokens: public function terminate ( ) { /** @var EventHandler $eventHandler */ $ eventHandler = $ this -> getService ( 'event-handler' ) ; $ eventHandler -> getEvent ( TerminateApplication :: class ) -> attach ( new LogBeforeTerminate ( ) ) ; $ eventHandler -> getEvent ( TerminateApplication :: class ) -> attach ( new ExitApplication ( ) ) ; $ eventHandler -> fire ( TerminateApplication :: class , [ 'app' => $ this ] ) ; }
docstring: Fire TerminateApplication event
  with two framework watchers.
  One to log and one to actually exit.
docstring_tokens: Fire TerminateApplication event with two framework watchers . One to log and one to actually exit .