Skip to content

Commit

Permalink
rename handler factory to handler biulder
Browse files Browse the repository at this point in the history
  • Loading branch information
n1215 committed Dec 7, 2017
1 parent a02ca8f commit 1204f00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use N1215\Hakudo\Router;
use N1215\Http\Router\RouterInterface;
use N1215\Http\Router\RoutingErrorResponderInterface;
use N1215\Jugoya\RequestHandlerFactoryInterface;
use N1215\Jugoya\RequestHandlerBuilderInterface;
use N1215\Tsukuyomi\FrameworkInterface;

class RouteServiceProvider
Expand All @@ -17,7 +17,7 @@ public function register(Container $container)
{
$container->singleton(RouterInterface::class, function (Container $container) {
$framework = $container->get(FrameworkInterface::class);
$router = new Router($container->get(RequestHandlerFactoryInterface::class));
$router = new Router($container->get(RequestHandlerBuilderInterface::class));

$routingPath = $framework->path('routes/api.php');
require $routingPath;
Expand Down
2 changes: 1 addition & 1 deletion config/providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// framework service providers
\N1215\Tsukuyomi\Providers\BootLoaderServiceProvider::class,
\N1215\Tsukuyomi\Providers\HttpApplicationServiceProvider::class,
\N1215\Tsukuyomi\Providers\RequestHandlerFactoryServiceProvider::class,
\N1215\Tsukuyomi\Providers\RequestHandlerBuilderServiceProvider::class,

// application service providers
\App\Providers\EventServiceProvider::class,
Expand Down

0 comments on commit 1204f00

Please sign in to comment.