Skip to content

Commit

Permalink
app bot service providers in app.php config, bootstrap/app.php changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vyuldashev committed Nov 7, 2017
1 parent b1725c6 commit 4047199
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
17 changes: 14 additions & 3 deletions bootstrap/app.php
Expand Up @@ -6,8 +6,19 @@
realpath(__DIR__.'/../')
);

$app->register(Bot\Providers\EventServiceProvider::class);
$app->register(Bot\Providers\ChannelServiceProvider::class);
$app->register(Bot\Providers\ConversationServiceProvider::class);
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
FondBot\Framework\Http\Kernel::class
);

$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
FondBot\Framework\Console\Kernel::class
);

$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
FondBot\Framework\Exceptions\Handler::class
);

return $app;
7 changes: 7 additions & 0 deletions config/app.php
Expand Up @@ -149,6 +149,13 @@
*/
FondBot\Foundation\ServiceProvider::class,

/*
* Bot Service Providers...
*/
Bot\Providers\EventServiceProvider::class,
Bot\Providers\ChannelServiceProvider::class,
Bot\Providers\ConversationServiceProvider::class,

],

/*
Expand Down

0 comments on commit 4047199

Please sign in to comment.