Trim comment bloat from Route class.

This commit is contained in:
Taylor Otwell 2011-07-08 12:46:21 -07:00
parent 0dd06ad314
commit 5ea2974bd6
1 changed files with 1 additions and 3 deletions

View File

@ -43,7 +43,7 @@ public function __construct($key, $callback, $parameters = array())
* *
* @param mixed $route * @param mixed $route
* @param array $parameters * @param array $parameters
* @return mixed * @return Response
*/ */
public function call() public function call()
{ {
@ -57,8 +57,6 @@ public function call()
{ {
$response = isset($this->callback['before']) ? Route\Filter::call($this->callback['before'], array(), true) : null; $response = isset($this->callback['before']) ? Route\Filter::call($this->callback['before'], array(), true) : null;
// Verify that the before filters did not return a response. Before filters can override
// the request cycle to make things like authentication more convenient.
if (is_null($response) and isset($this->callback['do'])) if (is_null($response) and isset($this->callback['do']))
{ {
$response = call_user_func_array($this->callback['do'], $this->parameters); $response = call_user_func_array($this->callback['do'], $this->parameters);