mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-26 10:27:06 +00:00
Laravel support tests
This commit is contained in:
@@ -86,10 +86,6 @@ class MaxBotServiceProvider extends ServiceProvider
|
||||
return new ModelFactory();
|
||||
});
|
||||
|
||||
$this->app->singleton(UpdateDispatcher::class, function (Application $app) {
|
||||
return new UpdateDispatcher($app->make(Api::class));
|
||||
});
|
||||
|
||||
$this->app->singleton(Api::class, function (Application $app) {
|
||||
/** @var Config $config */
|
||||
$config = $app->make(Config::class);
|
||||
@@ -106,10 +102,14 @@ class MaxBotServiceProvider extends ServiceProvider
|
||||
$app->make(ClientApiInterface::class),
|
||||
$app->make(ModelFactory::class),
|
||||
$app->make(LoggerInterface::class),
|
||||
$app->make(UpdateDispatcher::class),
|
||||
null,
|
||||
);
|
||||
});
|
||||
|
||||
$this->app->singleton(UpdateDispatcher::class, function (Application $app) {
|
||||
return $app->make(Api::class)->getUpdateDispatcher();
|
||||
});
|
||||
|
||||
$this->app->bind(WebhookHandler::class, function (Application $app) {
|
||||
/** @var Config $config */
|
||||
$config = $app->make(Config::class);
|
||||
@@ -171,6 +171,7 @@ class MaxBotServiceProvider extends ServiceProvider
|
||||
* Get the services provided by the provider.
|
||||
*
|
||||
* @return array<int, string>
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function provides(): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user