File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
use Telegram \Bot \Api ;
8
8
use Telegram \Bot \Bot ;
9
9
use Telegram \Bot \BotManager ;
10
+ use Illuminate \Contracts \Support \DeferrableProvider ;
10
11
use Telegram \Bot \Laravel \Console \Command \CommandListCommand ;
11
12
use Telegram \Bot \Laravel \Console \Command \CommandMakeCommand ;
12
13
use Telegram \Bot \Laravel \Console \Command \CommandRegisterCommand ;
18
19
/**
19
20
* Class TelegramServiceProvider.
20
21
*/
21
- class TelegramServiceProvider extends ServiceProvider
22
+ class TelegramServiceProvider extends ServiceProvider implements DeferrableProvider
22
23
{
23
24
/**
24
25
* Register the service provider.
@@ -78,7 +79,7 @@ protected function offerPublishing(): void
78
79
*/
79
80
protected function registerBindings (): void
80
81
{
81
- $ this ->app ->bind (
82
+ $ this ->app ->singleton (
82
83
BotManager::class,
83
84
fn ($ app ): BotManager => (new BotManager (config ('telegram ' )))->setContainer ($ app )
84
85
);
You can’t perform that action at this time.
0 commit comments