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

Commit

Permalink
Merge pull request #2 from jfcorsini/master
Browse files Browse the repository at this point in the history
Fix config retrieval
  • Loading branch information
BradWhittington authored Aug 26, 2017
2 parents 17dcf7f + d74da49 commit 6212b0b
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

4 comments on commit 6212b0b

@jfcorsini
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @BradWhittington. Could you also update the version of the project on Packagist? Thanks :)

@zoidyzoidzoid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

@zoidyzoidzoid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jfcorsini
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.