for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByJG\RestServer\HandleOutput;
use ByJG\Serializer\Formatter\XmlFormatter;
use Whoops\Handler\XmlResponseHandler;
class XmlHandler extends BaseHandler
{
public function __construct()
$this->option('header', [
'Content-Type: text/xml'
]);
}
public function getErrorHandler()
return new XmlResponseHandler();
public function getFormatter()
return new XmlFormatter();