remove mergeConfigs
This commit is contained in:
parent
eff4294d5a
commit
0806d177e6
1 changed files with 2 additions and 9 deletions
|
@ -15,7 +15,6 @@ class PrometheusServiceProvider extends ServiceProvider
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
$this->publishFiles();
|
$this->publishFiles();
|
||||||
$this->mergeConfigs();
|
|
||||||
$this->loadRoutes();
|
$this->loadRoutes();
|
||||||
|
|
||||||
if (config('prometheus.metrics_route_enabled')) {
|
if (config('prometheus.metrics_route_enabled')) {
|
||||||
|
@ -29,14 +28,6 @@ class PrometheusServiceProvider extends ServiceProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Merge configs.
|
|
||||||
*/
|
|
||||||
protected function mergeConfigs()
|
|
||||||
{
|
|
||||||
$this->mergeConfigFrom(__DIR__ . '/../config/prometheus.php', 'prometheus');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Publish files.
|
* Publish files.
|
||||||
*/
|
*/
|
||||||
|
@ -60,6 +51,8 @@ class PrometheusServiceProvider extends ServiceProvider
|
||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
|
$this->mergeConfigFrom(__DIR__ . '/../config/prometheus.php', 'prometheus');
|
||||||
|
|
||||||
$this->app->singleton(PrometheusExporter::class, function ($app) {
|
$this->app->singleton(PrometheusExporter::class, function ($app) {
|
||||||
$adapter = $app['prometheus.storage_adapter'];
|
$adapter = $app['prometheus.storage_adapter'];
|
||||||
$prometheus = new CollectorRegistry($adapter);
|
$prometheus = new CollectorRegistry($adapter);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue