From fe0f4a76f66f0d5bf69d1419eabc51283a5a7e3b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 5 Aug 2011 15:49:59 -0500 Subject: [PATCH] Pass request method and uri to before and after filters. --- system/laravel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/laravel.php b/system/laravel.php index 3d5f29dc..f5f1d084 100644 --- a/system/laravel.php +++ b/system/laravel.php @@ -141,7 +141,7 @@ if (ACTIVE_MODULE !== 'application' and file_exists($filters = ACTIVE_MODULE_PAT // -------------------------------------------------------------- foreach (array('before', ACTIVE_MODULE.'::before') as $filter) { - $response = Routing\Filter::call($filter, array(), true); + $response = Routing\Filter::call($filter, array(Request::method(), Request::uri()), true); if ( ! is_null($response)) break; } @@ -163,7 +163,7 @@ $response = Response::prepare($response); // -------------------------------------------------------------- foreach (array(ACTIVE_MODULE.'::after', 'after') as $filter) { - Routing\Filter::call($filter, array($response)); + Routing\Filter::call($filter, array($response, Request::method(), Request::uri())); } // --------------------------------------------------------------