1
0
Fork 0

Fix create project

pull/547/merge
Jordi Boggiano 2012-04-19 19:45:26 +02:00
parent b999d18365
commit 120171ff5a
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ use Composer\Installer\ProjectInstaller;
use Composer\IO\IOInterface;
use Composer\Repository\ComposerRepository;
use Composer\Repository\FilesystemRepository;
use Composer\Repository\InstalledFilesystemRepository;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
@ -113,7 +114,7 @@ EOT
$io->write('<info>Installing ' . $package->getName() . ' as new project.</info>', true);
$projectInstaller = new ProjectInstaller($directory, $dm);
$projectInstaller->install(new FilesystemRepository(new JsonFile('php://memory')), $package);
$projectInstaller->install(new InstalledFilesystemRepository(new JsonFile('php://memory')), $package);
$io->write('<info>Created project into directory ' . $directory . '</info>', true);
chdir($directory);