for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByJG\RestServer\OutputProcessor;
use ByJG\RestServer\Whoops\JsonResponseErrorHandler;
use ByJG\Serializer\Formatter\JsonFormatter;
class JsonOutputProcessor extends BaseOutputProcessor
{
public function __construct()
$this->contentType = "application/json";
}
public function getErrorHandler()
return new JsonResponseErrorHandler();
public function getFormatter()
return new JsonFormatter();