mailerlite / laravel-elasticsearch

An easy way to use the official Elastic Search client in your Laravel applications.
MIT License
918 stars 187 forks source link

Renew custom credentials #80

Closed giorgiomen closed 4 years ago

giorgiomen commented 4 years ago

This PR fixes a bug: if you use custom credentials (i.e. instanceProfile) they will not be renewed if the execution runs in a cron job (i.e. supervisor). Using the Closure, the credentials will be renewed every time a client will be instatiated.

cviebrock commented 4 years ago

Tagged version 4.2.1 with this contribution. Thanks!