diff --git a/example-silex.php b/examples/example-silex.php similarity index 83% rename from example-silex.php rename to examples/example-silex.php index 046142e..1e1f789 100644 --- a/example-silex.php +++ b/examples/example-silex.php @@ -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(); \ No newline at end of file +$app->run(); diff --git a/example.php b/examples/example.php similarity index 90% rename from example.php rename to examples/example.php index c769877..fcd36bc 100644 --- a/example.php +++ b/examples/example.php @@ -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 {}