File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ public function getElasticSearchClient()
8585 {
8686 $ config = array ();
8787
88- if (\Config:: has ('elasticquent.config ' )) {
89- $ config = \Config:: get ('elasticquent.config ' );
88+ if (config ()-> has ('elasticquent.config ' )) {
89+ $ config = config ()-> get ('elasticquent.config ' );
9090 }
9191
9292 return new \Elasticsearch \Client ($ config );
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ public function getElasticSearchClient()
5757 {
5858 $ config = array ();
5959
60- if (\Config:: has ('elasticquent.config ' )) {
61- $ config = \Config:: get ('elasticquent.config ' );
60+ if (config ()-> has ('elasticquent.config ' )) {
61+ $ config = config ()-> get ('elasticquent.config ' );
6262 }
6363
6464 return new \Elasticsearch \Client ($ config );
@@ -85,8 +85,8 @@ public function getIndexName()
8585 // The first thing we check is if there
8686 // is an elasticquery config file and if there is a
8787 // default index.
88- if (\Config:: has ('elasticquent.default_index ' )) {
89- return \Config:: get ('elasticquent.default_index ' );
88+ if (config ()-> has ('elasticquent.default_index ' )) {
89+ return config ()-> get ('elasticquent.default_index ' );
9090 }
9191
9292 // Otherwise we will just go with 'default'
You can’t perform that action at this time.
0 commit comments