From 545d321e0d068b1201dbf42969349d2a31dc90e3 Mon Sep 17 00:00:00 2001 From: SteamPixel Date: Tue, 14 Jan 2020 10:42:38 +0100 Subject: [PATCH] Added namespacing --- README.md | 1 + Route.php | 3 +++ index.php | 9 ++++++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 75f5dd4..a99f309 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ The third argument will match the request method. The default method is 'get'. ## Simple example: ```php +use SteamPixel\Route; include 'Route.php'; Route::add('/user/([0-9]*)/edit', function($id) { diff --git a/Route.php b/Route.php index 1d4b0a6..58193c2 100644 --- a/Route.php +++ b/Route.php @@ -1,4 +1,7 @@