2017 © Pedro Peláez
 

library silex-1

Whoops provider for Silex

image

whoops/silex-1

Whoops provider for Silex

  • Thursday, November 24, 2016
  • by denis-sokolov
  • Repository
  • 2 Watchers
  • 1 Stars
  • 23,114 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 20 % Grown

The README.md

Integrating Whoops with Silex

whoops comes packaged with a Silex Service Provider: Whoops\Provider\Silex\WhoopsServiceProvider. Using it in your existing Silex project is easy:, (*1)


require 'vendor/autoload.php'; use Silex\Application; // ... some awesome code here ... if ($app['debug']) { $app->register(new Whoops\Provider\Silex\WhoopsServiceProvider()); } // ... $app->run();

And that's about it. By default, you'll get the pretty error pages if something goes awry in your development environment, but you also have full access to the whoops library, obviously. For example, adding a new handler into your app is as simple as extending whoops:, (*2)

$app['whoops'] = $app->extend('whoops', function ($whoops) {
    $whoops->pushHandler(new DeleteWholeProjectHandler());
    return $whoops;
});

The Versions

24/11 2016

dev-master

9999999-dev

Whoops provider for Silex

  Sources   Download

MIT

The Requires

 

24/11 2016

1.0.1

1.0.1.0

Whoops provider for Silex

  Sources   Download

MIT

The Requires

 

22/11 2015

1.0.0

1.0.0.0

Whoops provider for Silex

  Sources   Download

MIT