Skip to content

Commit

Permalink
get the middleware from the class property instead of using the getMi…
Browse files Browse the repository at this point in the history
…ddleware method
  • Loading branch information
mnlg committed Apr 3, 2013
1 parent f71dbdd commit 2639450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public function conditions(array $conditions)
*/
public function dispatch()
{
foreach ($this->getMiddleware() as $mw) {
foreach ($this->middleware as $mw) {
call_user_func_array($mw, array($this));
}

Expand Down

0 comments on commit 2639450

Please sign in to comment.