Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 418 Bytes
<?php
namespace SlashTrace\DebugRenderer;
use SlashTrace\Event;
use SlashTrace\System\HasSystemProvider;
class DebugJsonRenderer implements DebugRenderer
{
use HasSystemProvider;
public function render(Event $event)
{
$this->getSystem()->output(
json_encode(array_merge(
["success" => false],
$event->jsonSerialize()
))
);
}
}