@fleetbase/registry-bridge-engine 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/composer.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbase/registry-bridge",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "keywords": [
6
6
  "fleetbase-extension",
package/extension.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Registry Bridge",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "repository": "https://github.com/fleetbase/registry-bridge",
6
6
  "license": "AGPL-3.0-or-later",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetbase/registry-bridge-engine",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "fleetbase": {
6
6
  "route": "extensions"
@@ -4,7 +4,6 @@ namespace Fleetbase\RegistryBridge\Providers;
4
4
 
5
5
  use Fleetbase\Models\Setting;
6
6
  use Fleetbase\Providers\CoreServiceProvider;
7
- use Fleetbase\RegistryBridge\Support\Utils;
8
7
 
9
8
  if (!class_exists(CoreServiceProvider::class)) {
10
9
  throw new \Exception('Registry Bridge cannot be loaded without `fleetbase/core-api` installed!');
@@ -72,7 +71,6 @@ class RegistryBridgeServiceProvider extends CoreServiceProvider
72
71
  */
73
72
  public function boot()
74
73
  {
75
- Utils::bootRegistryAuth();
76
74
  $this->registerCommands();
77
75
  $this->registerMiddleware();
78
76
  $this->registerExpansionsFrom(__DIR__ . '/../Expansions');
@@ -82,6 +80,17 @@ class RegistryBridgeServiceProvider extends CoreServiceProvider
82
80
  $this->mergeConfigFromSettings();
83
81
  }
84
82
 
83
+ /**
84
+ * Merge configuration settings from the database into the application configuration.
85
+ *
86
+ * This function checks if there is a database connection available. If a connection exists,
87
+ * it retrieves the 'registry-bridge.registry.host' and 'registry-bridge.registry.token' values
88
+ * from the settings table and merges them into the application's configuration. If the settings
89
+ * are not available or the database connection does not exist, the function will return without
90
+ * making any changes.
91
+ *
92
+ * @return void
93
+ */
85
94
  public function mergeConfigFromSettings()
86
95
  {
87
96
  if (Setting::doesntHaveConnection()) {