for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of GitterBot package.
*
* @author Serafim <[email protected]>
* @date 28.01.2016 16:27
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Exceptions;
use Gitter\Handlers\DebugErrorHandler;
use Gitter\Handlers\ErrorHandlerInterface;
* Class GitterHandler
* @package App\Exceptions
class GitterHandler implements ErrorHandlerInterface
{
* @var DebugErrorHandler
protected $debugHandler;
* GitterHandler constructor.
public function __construct()
$this->debugHandler = new DebugErrorHandler();
}
* @param \Throwable $e
public function fire(\Throwable $e)
if (app()->isLocal()) {
$this->debugHandler->fire($e);