1
0
Fork 0

Merge pull request #460 from mike-php-net/create-project-fix

fixed create-project with json file
pull/439/merge
Jordi Boggiano 2012-03-16 01:41:13 -07:00
commit 136198d38d
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Composer\Json\JsonFile;
/**
* Install a package as new project into new directory.
@ -85,7 +86,7 @@ EOT
if (null === $repositoryUrl) {
$sourceRepo = new ComposerRepository(array('url' => 'http://packagist.org'));
} elseif (".json" === substr($repositoryUrl, -5)) {
$sourceRepo = new FilesystemRepository($repositoryUrl);
$sourceRepo = new FilesystemRepository(new JsonFile($repositoryUrl));
} elseif (0 === strpos($repositoryUrl, 'http')) {
$sourceRepo = new ComposerRepository(array('url' => $repositoryUrl));
} else {