You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2019. It is now read-only.
feature #247 Made all network connections proxy-compatible (javiereguiluz)
This PR was squashed before being merged into the 1.0-dev branch (closes#247).
Discussion
----------
Made all network connections proxy-compatible
This fixes #243.
Commits
-------
5ef4b77 Made all network connections proxy-compatible
if (false === $remoteVersion = @file_get_contents(Application::VERSIONS_URL)) {
126
-
thrownew \RuntimeException('The new version of the Symfony Installer couldn\'t be downloaded from the server.');
127
-
}
128
-
129
-
if (version_compare($localVersion, $remoteVersion, '>=')) {
130
-
$this->output->writeln('<info>Symfony Installer is already up to date.</info>');
131
-
$isUpdated = true;
132
-
} else {
133
-
$this->output->writeln(sprintf('// <info>updating</info> Symfony Installer to <comment>%s</comment> version', $remoteVersion));
134
-
}
135
-
136
-
return$isUpdated;
137
-
}
138
-
139
121
privatefunctiondownloadNewVersion()
140
122
{
141
123
// check for permissions in local filesystem before start downloading files
@@ -147,7 +129,7 @@ private function downloadNewVersion()
147
129
thrownew \RuntimeException('Symfony Installer update failed: the "'.$this->tempDir.'" directory used to download files temporarily could not be written');
148
130
}
149
131
150
-
if (false === $newInstaller = @file_get_contents($this->remoteInstallerFile)) {
132
+
if (false === $newInstaller = $this->getUrlContents($this->remoteInstallerFile)) {
151
133
thrownew \RuntimeException('The new version of the Symfony Installer couldn\'t be downloaded from the server.');
0 commit comments