Skip to content

Instantly share code, notes, and snippets.

@ryanaslett
Created January 5, 2017 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanaslett/ca0843184fcd002c535ee5e07f1d5b0c to your computer and use it in GitHub Desktop.
Save ryanaslett/ca0843184fcd002c535ee5e07f1d5b0c to your computer and use it in GitHub Desktop.
if (isset($_ENV['DCI_PHPVersion'])) {
if (0 !== strpos($ENV['DCI_PHPVersion'], 'php')) {
// Old Containers didnt have the 'web' name configured on d.o.
$this->configuration['phpversion'] = 'web-' . $_ENV['DCI_PHPVersion'];
} else {
$this->configuration['phpversion'] = $_ENV['DCI_PHPVersion'];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment