Skip to content

Commit

Permalink
Fixing HttpServiceProvider bug
Browse files Browse the repository at this point in the history
Signed-off-by: RJ Garcia <rj@bighead.net>
  • Loading branch information
ragboyjr committed May 4, 2017
1 parent 8f5e527 commit 4251cea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixed

- Bug in HttpServiceProvider

## 0.3.2 - 2017-05-03

### Added
Expand Down
6 changes: 3 additions & 3 deletions src/HttpServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function register(Cargo\Container $c) {
return $store;
};
$c[RouteCompiler::class] = function() {
return new Http\Route\RecursiveRouteCompiler();
return new Route\RecursiveRouteCompiler();
};
$c[DispatcherFactory::class] = function() {
return new Dispatcher\FastRoute\FastRouteDispatcherFactory();
Expand All @@ -45,8 +45,8 @@ function() use ($app) {
}
);
};
$c[Http\Route\RouteGroup::class] = function() {
return new Http\Route\RouteGroup('');
$c[Route\RouteGroup::class] = function() {
return new Route\RouteGroup('');
};
$c['krak.http.response_factory.json_encode_options'] = 0;
$c['krak.http.compose'] = function($c) {
Expand Down

0 comments on commit 4251cea

Please sign in to comment.