mirror of
https://github.com/filp/whoops.git
synced 2026-08-31 12:38:10 +00:00
Move example files to examples/
This commit is contained in:
@@ -7,17 +7,17 @@
|
||||
* within this project using the --dev flag:
|
||||
*
|
||||
* $ composer install --dev
|
||||
*
|
||||
*
|
||||
* Run this example file with the PHP 5.4 web server with:
|
||||
*
|
||||
* $ cd project_dir
|
||||
* $ php -S localhost:8080
|
||||
*
|
||||
* and access localhost:8080/example.php through your browser
|
||||
* and access localhost:8080/examples/example-silex.php through your browser
|
||||
*
|
||||
* Or just run it through apache/nginx/what-have-yous as usual.
|
||||
*/
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use Damnit\Silex\DamnitServiceProvider;
|
||||
use Silex\Application;
|
||||
@@ -33,4 +33,4 @@ $app->get('/', function() use($app) {
|
||||
throw new RuntimeException("Oh no!");
|
||||
});
|
||||
|
||||
$app->run();
|
||||
$app->run();
|
||||
@@ -8,7 +8,7 @@
|
||||
* $ cd project_dir
|
||||
* $ php -S localhost:8080
|
||||
*
|
||||
* and access localhost:8080/example.php through your browser
|
||||
* and access localhost:8080/example/example.php through your browser
|
||||
*
|
||||
* Or just run it through apache/nginx/what-have-yous as usual.
|
||||
*/
|
||||
@@ -18,7 +18,7 @@ use Damnit\Run;
|
||||
use Damnit\Handler\PrettyPageHandler;
|
||||
use Exception as BaseException;
|
||||
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
class Exception extends BaseException {}
|
||||
|
||||
Reference in New Issue
Block a user