We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c2648 commit aff8b8dCopy full SHA for aff8b8d
src/MqttClientServiceProvider.php
@@ -4,6 +4,8 @@
4
5
use Illuminate\Contracts\Foundation\Application;
6
use Illuminate\Support\ServiceProvider;
7
+use PhpMqtt\Client\Contracts\Repository;
8
+use PhpMqtt\Client\Repositories\MemoryRepository;
9
10
/**
11
* Registers the php-mqtt/laravel-client within the application.
@@ -50,5 +52,7 @@ protected function registerServices(): void
50
52
$config = $app->make('config')->get('mqtt-client', []);
51
53
return new ConnectionManager($app, $config);
54
});
55
+
56
+ $this->app->bind(Repository::class, MemoryRepository::class);
57
}
58
0 commit comments