Skip to content

Commit

Permalink
Use get instead of resolve for error route
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaud Fabre committed Feb 28, 2015
1 parent d0011fa commit bbc128c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Phinject/SilexRouteBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function getErrorHandler()

return function (\Exception $exception, $code) use ($container, $errorCallback) {
if ($errorCallback != null) {
$controller = $container->resolve($errorCallback);
$controller = $container->get($errorCallback);

return $controller(Request::createFromGlobals());
}
Expand Down

0 comments on commit bbc128c

Please sign in to comment.