File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2121 "illuminate/database" : " ~4.2|^5" ,
2222 "illuminate/config" : " ~4.2|^5" ,
2323 "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"
2625 },
2726 "require-dev" : {
2827 "phpunit/phpunit" : " ~4.2|~5.0" ,
2928 "mockery/mockery" : " ^0.9.4"
3029 },
30+ "suggest" : {
31+ "aws/aws-sdk-php" : " ^3.18"
32+ },
3133 "autoload" : {
3234 "psr-4" : {
3335 "Elasticquent\\ " : " src/"
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ public function getClient()
5454 */
5555 private function getAwsESHandler ()
5656 {
57+ if (!class_exists ('\Aws\default_http_handler ' )) {
58+ return false ;
59+ }
60+
5761 $ awsConfig = $ this ->getElasticConfig ('aws ' );
5862 if (empty ($ awsConfig )) {
5963 return false ;
You can’t perform that action at this time.
0 commit comments