2017 © Pedro Peláez
 

library foo-debug

Whoops Handler for Opulence

image

peteraba/foo-debug

Whoops Handler for Opulence

  • Thursday, April 20, 2017
  • by peteraba
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FooDebug

Library for making multilingual applications in Opulence easy., (*1)

Build Status License composer.lock Scrutinizer Code Quality Code Coverage Build Status, (*2)

Setup

Install the library via composer:, (*3)

composer install peteraba/foo-debug

Replace your exceptions config file, (*4)

# config/http/exceptions.php

<?php

use Foo\Debug\Exceptions\Handlers\Whoops\ExceptionHandler;
use Foo\Debug\Exceptions\Handlers\Whoops\ExceptionRenderer;
use Opulence\Environments\Environment;
use Whoops\Run;

/**
 * ----------------------------------------------------------
 * Define the exception handler
 * ----------------------------------------------------------
 *
 * The last parameter lists any exceptions you do not want to log
 */
$isDevelopment = Environment::getVar('ENV_NAME') === Environment::DEVELOPMENT;

$exceptionRenderer = new ExceptionRenderer(new Run(), $isDevelopment);

return new ExceptionHandler(
    $logger,
    $exceptionRenderer,
    [
        HttpException::class
    ]
);

The Versions

20/04 2017

dev-master

9999999-dev

Whoops Handler for Opulence

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Aba