moved route filter to route directory.

This commit is contained in:
Taylor Otwell 2011-06-28 23:26:42 -05:00
parent de6312ccf9
commit 4f73200675
3 changed files with 5 additions and 5 deletions

View File

@ -83,7 +83,7 @@
// -------------------------------------------------------------- // --------------------------------------------------------------
// Execute the global "before" filter. // Execute the global "before" filter.
// -------------------------------------------------------------- // --------------------------------------------------------------
$response = System\Filter::call('before', array(), true); $response = System\Route\Filter::call('before', array(), true);
// -------------------------------------------------------------- // --------------------------------------------------------------
// Only execute the route function if the "before" filter did // Only execute the route function if the "before" filter did
@ -116,7 +116,7 @@
// ---------------------------------------------------------- // ----------------------------------------------------------
// Execute the global "after" filter. // Execute the global "after" filter.
// ---------------------------------------------------------- // ----------------------------------------------------------
System\Filter::call('after', array($response)); System\Route\Filter::call('after', array($response));
// ---------------------------------------------------------- // ----------------------------------------------------------
// Stringify the response. // Stringify the response.

View File

@ -63,7 +63,7 @@ public function call()
// ------------------------------------------------------------ // ------------------------------------------------------------
elseif (is_array($this->callback)) elseif (is_array($this->callback))
{ {
$response = isset($this->callback['before']) ? Filter::call($this->callback['before'], array(), true) : null; $response = isset($this->callback['before']) ? Route\Filter::call($this->callback['before'], array(), true) : null;
// ------------------------------------------------------------ // ------------------------------------------------------------
// We verify that the before filters did not return a response // We verify that the before filters did not return a response
@ -80,7 +80,7 @@ public function call()
if (is_array($this->callback) and isset($this->callback['after'])) if (is_array($this->callback) and isset($this->callback['after']))
{ {
Filter::call($this->callback['after'], array($response)); Route\Filter::call($this->callback['after'], array($response));
} }
return $response; return $response;

View File

@ -1,4 +1,4 @@
<?php namespace System; <?php namespace System\Route;
class Filter { class Filter {