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.
This commit is contained in:
João Fernando Corsini 2017-08-22 17:11:18 -03:00
parent 17dcf7f3a3
commit d74da49539

View file

@ -49,7 +49,7 @@ class PrometheusServiceProvider extends ServiceProvider
$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);
});