From e7dfbb159c88be2e551312cfd64d3950f65aab4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Tue, 4 Oct 2016 02:50:36 +0200 Subject: [PATCH] Updated documentation --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a062bfb..622b074 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ SimpleRouter::group(['prefix' => 'v1', 'middleware' => '\MyWebsite\Middleware\So This is a basic example of an ExceptionHandler implementation: ```php -namespace BB\Handlers; +namespace Demo\Handlers; use Pecee\Http\Request; use Pecee\SimpleRouter\RouterEntry; @@ -184,7 +184,7 @@ This is a simple example of an integration into a framework. The framework has it's own ```Router``` class which inherits from the ```SimpleRouter``` class. This allows the framework to add custom functionality. ```php -namespace Pecee; +namespace Demo; use Pecee\Exception\RouterException; use Pecee\Handler\ExceptionHandler; @@ -348,7 +348,6 @@ Sometimes it can be necessary to keep urls stored in the database, file or simil To interfere with the router, we create a class that inherits from ```RouterBootManager```. This class will be loaded before any other rules in ```routes.php``` and allow us to "change" the current route, if any of our criteria are fulfilled (like coming from the url ```/my-cat-is-beatiful```). ```php - use Pecee\Http\Request; use Pecee\SimpleRouter\RouterBootManager;