Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Use SSL everywhere #152

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ This step is only needed the first time you use the installer:
### Linux and Mac OS X

```bash
$ sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony
$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
$ sudo chmod a+x /usr/local/bin/symfony
```

### Windows

```bash
c:\> php -r "readfile('http://symfony.com/installer');" > symfony
c:\> php -r "readfile('https://symfony.com/installer');" > symfony
```

Move the downloaded `symfony` file to your projects directory and execute
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Installer/DemoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ protected function getDownloadedApplicationType()

protected function getRemoteFileUrl()
{
return 'http://symfony.com/download?v=Symfony_Demo';
return 'https://symfony.com/download?v=Symfony_Demo';
}
}
6 changes: 3 additions & 3 deletions src/Symfony/Installer/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function checkSymfonyVersionIsInstallable()
// Check if we have a minor version in order to retrieve the last patch from symfony.com

$client = $this->getGuzzleClient();
$versionsList = $client->get('http://symfony.com/versions.json')->json();
$versionsList = $client->get('https://symfony.com/versions.json')->json();

if ($versionsList && isset($versionsList[$this->version])) {
// Get the latest patch of the minor version the user asked
Expand Down Expand Up @@ -253,7 +253,7 @@ protected function displayInstallationResult()
" * Run your application:\n".
" 1. Execute the <comment>php app/console server:run</comment> command.\n".
" 2. Browse to the <comment>http://localhost:8000</comment> URL.\n\n".
" * Read the documentation at <comment>http://symfony.com/doc</comment>\n",
" * Read the documentation at <comment>https://symfony.com/doc</comment>\n",
$this->projectDir
));

Expand Down Expand Up @@ -400,6 +400,6 @@ protected function getDownloadedApplicationType()

protected function getRemoteFileUrl()
{
return 'http://symfony.com/download?v=Symfony_Standard_Vendors_'.$this->version;
return 'https://symfony.com/download?v=Symfony_Standard_Vendors_'.$this->version;
}
}
4 changes: 2 additions & 2 deletions src/Symfony/Installer/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
$this->fs = new Filesystem();
$this->output = $output;

$this->remoteInstallerFile = 'http://symfony.com/installer';
$this->remoteInstallerFile = 'https://symfony.com/installer';
$this->currentInstallerFile = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0];
$this->tempDir = sys_get_temp_dir();
$this->currentInstallerBackupFile = basename($this->currentInstallerFile, '.phar').'-backup.phar';
Expand Down Expand Up @@ -122,7 +122,7 @@ private function installerIsUpdated()
$isUpdated = false;
$localVersion = $this->getApplication()->getVersion();

if (false === $remoteVersion = @file_get_contents('http://get.sensiolabs.org/symfony.version')) {
if (false === $remoteVersion = @file_get_contents('https://get.sensiolabs.org/symfony.version')) {
throw new \RuntimeException('The new version of the Symfony Installer couldn\'t be downloaded from the server.');
}

Expand Down