@@ -43,15 +43,15 @@ |
||
| 43 | 43 | { |
| 44 | 44 | $app = $this->app; |
| 45 | 45 | |
| 46 | - $app->singleton('elasticsearch.factory', function ($app) { |
|
| 46 | + $app->singleton('elasticsearch.factory', function($app) { |
|
| 47 | 47 | return new Factory(); |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | - $app->singleton('elasticsearch', function ($app) { |
|
| 50 | + $app->singleton('elasticsearch', function($app) { |
|
| 51 | 51 | return new Manager($app, $app['elasticsearch.factory']); |
| 52 | 52 | }); |
| 53 | 53 | |
| 54 | - $app->singleton(Client::class, function ($app) { |
|
| 54 | + $app->singleton(Client::class, function($app) { |
|
| 55 | 55 | return $app['elasticsearch']->connection(); |
| 56 | 56 | }); |
| 57 | 57 | } |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $app = $this->app; |
| 31 | 31 | |
| 32 | - $app->singleton('elasticsearch.factory', function ($app) { |
|
| 32 | + $app->singleton('elasticsearch.factory', function($app) { |
|
| 33 | 33 | return new Factory(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - $app->singleton('elasticsearch', function ($app) { |
|
| 36 | + $app->singleton('elasticsearch', function($app) { |
|
| 37 | 37 | return new LumenManager($app, $app['elasticsearch.factory']); |
| 38 | 38 | }); |
| 39 | 39 | } |