PHP code example of whoops / silex-1
1. Go to this page and download the library: Download whoops/silex-1 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
whoops / silex-1 example snippets
use Silex\Application;
// ... some awesome code here ...
if ($app['debug']) {
$app->register(new Whoops\Provider\Silex\WhoopsServiceProvider());
}
// ...
$app->run();
$app['whoops'] = $app->extend('whoops', function ($whoops) {
$whoops->pushHandler(new DeleteWholeProjectHandler());
return $whoops;
});