This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Solves the timeout problem when the user is a "Team" member of too many | |
* Pantheon sites. In that case, when running | |
* drush pantheon-aliases | |
* you may encounter a timeout on the Terminus server, and your aliases file | |
* will not be updated. | |
* | |
* In this workaround, we leverage Terminus's API to fetch this info in smaller | |
* chunks. A side benefit is that we can now get aliases for all sites in our |