Commit 4f732006 authored by Taylor Otwell's avatar Taylor Otwell

moved route filter to route directory.

parent de6312cc
......@@ -83,7 +83,7 @@ if (System\Config::get('session.driver') != '')
// --------------------------------------------------------------
// 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
......@@ -116,7 +116,7 @@ else
// ----------------------------------------------------------
// Execute the global "after" filter.
// ----------------------------------------------------------
System\Filter::call('after', array($response));
System\Route\Filter::call('after', array($response));
// ----------------------------------------------------------
// Stringify the response.
......
......@@ -63,7 +63,7 @@ class Route {
// ------------------------------------------------------------
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
......@@ -80,7 +80,7 @@ class Route {
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;
......
<?php namespace System;
<?php namespace System\Route;
class Filter {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment