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

Commit db27479

Browse files
committed
Use the new method to get the Guzzle client in the New command also
1 parent 793bc02 commit db27479

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Installer/NewCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Installer;
1313

14-
use GuzzleHttp\Client;
1514
use Symfony\Component\Console\Input\InputArgument;
1615
use Symfony\Component\Console\Input\InputInterface;
1716
use Symfony\Component\Console\Output\OutputInterface;
@@ -130,7 +129,7 @@ protected function checkSymfonyVersionIsInstallable()
130129
if (preg_match('/^2\.\d$/', $this->version)) {
131130
// Check if we have a minor version in order to retrieve the last patch from symfony.com
132131

133-
$client = new Client();
132+
$client = $this->getGuzzleClient();
134133
$versionsList = $client->get('http://symfony.com/versions.json')->json();
135134

136135
if ($versionsList && isset($versionsList[$this->version])) {

0 commit comments

Comments
 (0)