for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Nofw\Foundation\Whoops\Handler;
use Whoops\Handler\Handler;
/**
* Production handler stops the execution chain when the application is in production mode.
*
* @author Márk Sági-Kazár <[email protected]>
*/
class ProductionHandler extends Handler
{
* @var bool
private $debug = false;
public function __construct(bool $debug)
$this->debug = $debug;
}
public function handle(): int
if ($this->debug) {
return Handler::DONE;
return Handler::QUIT;