@@ -13,22 +13,22 @@ |
||
| 13 | 13 | public function boot() |
| 14 | 14 | { |
| 15 | 15 | $this->publishes([ |
| 16 | - __DIR__ . '/../../../config/prometheus.php' => base_path('config/prometheus.php'), |
|
| 16 | + __DIR__.'/../../../config/prometheus.php' => base_path('config/prometheus.php'), |
|
| 17 | 17 | ]); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function register() |
| 21 | 21 | { |
| 22 | 22 | $this->mergeConfigFrom( |
| 23 | - __DIR__ . '/../../../config/prometheus.php', 'prometheus' |
|
| 23 | + __DIR__.'/../../../config/prometheus.php', 'prometheus' |
|
| 24 | 24 | ); |
| 25 | - $this->app->singleton(HttpRequestCollector::class, function ($app) { |
|
| 25 | + $this->app->singleton(HttpRequestCollector::class, function($app) { |
|
| 26 | 26 | return new HttpRequestCollector($app['config']->get('prometheus')); |
| 27 | 27 | }); |
| 28 | - $this->app->singleton(SwooleProcessCollector::class, function ($app) { |
|
| 28 | + $this->app->singleton(SwooleProcessCollector::class, function($app) { |
|
| 29 | 29 | return new SwooleProcessCollector($app['config']->get('prometheus')); |
| 30 | 30 | }); |
| 31 | - $this->app->singleton(PrometheusExporter::class, function ($app) { |
|
| 31 | + $this->app->singleton(PrometheusExporter::class, function($app) { |
|
| 32 | 32 | return new PrometheusExporter($app['config']->get('prometheus')); |
| 33 | 33 | }); |
| 34 | 34 | } |