code: public function execute($command, callable $next)
      {
          $this->formatter->logCommandReceived($command);
  
          $returnValue = false;
  
          try {
              $returnValue = $next($command);
  
              $this->formatter->logCommandProcessed($command, $returnValue);
  
              return $returnValue;
          } catch (Exception $exception) {
              $this->formatter->logCommandFailed($command, $exception);
          }
  
          return $returnValue;
      }
docs: {@inheritdoc}