/**
  * @param \Exception $exception The exception
  * @return void
  */
 protected function echoExceptionCli(\Exception $exception)
 {
     if ($this->graylogService === NULL) {
         $this->graylogService = new GraylogService();
     }
     $this->graylogService->logException($exception);
     parent::echoExceptionCli($exception);
 }
 /**
  * @param int $statusCode
  * @param string $referenceCode
  */
 protected function renderStatically($statusCode, $referenceCode)
 {
     $requestMediaType = $this->getRequestMediaType();
     if ($requestMediaType === 'application/json') {
         $this->renderStaticallyJson($statusCode, $referenceCode);
     } else {
         parent::renderStatically($statusCode, $referenceCode);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function echoExceptionCLI($exception)
 {
     $this->sendExceptionToSentry($exception);
     parent::echoExceptionCLI($exception);
 }