Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Fix config retrieval
Browse files Browse the repository at this point in the history
At PrometheusServiceProvider, the varaible $configs  was trying to access an unexisting key storage_adapters, since this variable only exists in the prometheus config.
  • Loading branch information
João Fernando Corsini committed Aug 22, 2017
1 parent 17dcf7f commit d74da49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrometheusServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function register()
$this->app->bind(Adapter::class, function ($app) {
$factory = $app['prometheus.storage_adapter_factory']; /** @var StorageAdapterFactory $factory */
$driver = config('prometheus.storage_adapter');
$configs = config('storage_adapters');
$configs = config('prometheus.storage_adapters');
$config = array_get($configs, $driver, []);
return $factory->make($driver, $config);
});
Expand Down

0 comments on commit d74da49

Please sign in to comment.