Skip to content

Commit

Permalink
Passing the controller name directly from ControllerFactoryFilter.
Browse files Browse the repository at this point in the history
This saves a bit of extra reflection
  • Loading branch information
lorenzo committed Apr 24, 2015
1 parent ef33e4e commit 9298bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/Filter/ControllerFactoryFilter.php
Expand Up @@ -84,6 +84,6 @@ protected function _getController($request, $response)
if ($reflection->isAbstract() || $reflection->isInterface()) {
return false;
}
return $reflection->newInstance($request, $response);
return $reflection->newInstance($request, $response, $controller);
}
}

0 comments on commit 9298bf0

Please sign in to comment.