From d74da4953940fc44833dc0599b78091338e234c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Fernando=20Corsini?= Date: Tue, 22 Aug 2017 17:11:18 -0300 Subject: [PATCH] Fix config retrieval At PrometheusServiceProvider, the varaible $configs was trying to access an unexisting key storage_adapters, since this variable only exists in the prometheus config. --- src/PrometheusServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PrometheusServiceProvider.php b/src/PrometheusServiceProvider.php index 97f5280..018f997 100644 --- a/src/PrometheusServiceProvider.php +++ b/src/PrometheusServiceProvider.php @@ -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); });