File "IgnitionExceptionRenderer.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/facade/ignition/src/ErrorPage/IgnitionExceptionRenderer.php
File size: 589 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Facade\Ignition\ErrorPage;
use Illuminate\Contracts\Foundation\ExceptionRenderer;
/** @psalm-suppress UndefinedClass */
class IgnitionExceptionRenderer implements ExceptionRenderer
{
/** @var \Facade\Ignition\ErrorPage\ErrorPageHandler */
protected $errorPageHandler;
public function __construct(ErrorPageHandler $errorPageHandler)
{
$this->errorPageHandler = $errorPageHandler;
}
public function render($throwable)
{
ob_start();
$this->errorPageHandler->handle($throwable);
return ob_get_clean();
}
}