File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 21
21
"illuminate/database" : " ~4.2|^5" ,
22
22
"illuminate/config" : " ~4.2|^5" ,
23
23
"nesbot/carbon" : " ~1.0" ,
24
- "elasticsearch/elasticsearch" : " >1.0 <2.2" ,
25
- "aws/aws-sdk-php" : " ^3.18"
24
+ "elasticsearch/elasticsearch" : " >1.0 <2.2"
26
25
},
27
26
"require-dev" : {
28
27
"phpunit/phpunit" : " ~4.2|~5.0" ,
29
28
"mockery/mockery" : " ^0.9.4"
30
29
},
30
+ "suggest" : {
31
+ "aws/aws-sdk-php" : " ^3.18"
32
+ },
31
33
"autoload" : {
32
34
"psr-4" : {
33
35
"Elasticquent\\ " : " src/"
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ public function getClient()
54
54
*/
55
55
private function getAwsESHandler ()
56
56
{
57
+ if (!class_exists ('\Aws\default_http_handler ' )) {
58
+ return false ;
59
+ }
60
+
57
61
$ awsConfig = $ this ->getElasticConfig ('aws ' );
58
62
if (empty ($ awsConfig )) {
59
63
return false ;
You can’t perform that action at this time.
0 commit comments