1
0
Fork 0

Fix namespace/use/typo issues

pull/19/head
Jordi Boggiano 2011-09-21 23:02:58 +02:00
parent 10bd9c3729
commit d27691a67f
5 changed files with 7 additions and 3 deletions

View File

@ -23,7 +23,7 @@ $composer->setRepository('Platform', new Repository\PlatformRepository());
$composer->setRepository('Packagist', new Repository\ComposerRepository('http://packagist.org')); $composer->setRepository('Packagist', new Repository\ComposerRepository('http://packagist.org'));
// initialize package // initialize package
$loader = new Package\Loader\Json(); $loader = new Package\Loader\JsonLoader();
$package = $loader->load('composer.json'); $package = $loader->load('composer.json');
// initialize lock // initialize lock

View File

@ -13,6 +13,8 @@
namespace Composer\Command; namespace Composer\Command;
use Composer\DependencyResolver; use Composer\DependencyResolver;
use Composer\DependencyResolver\Pool;
use Composer\DependencyResolver\Request;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
@ -43,7 +45,7 @@ EOT
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
if ($this->getLock()->isLocked()) { if ($this->getLock()->isLocked()) {
$this->writeln('<info>Found lockfile. Reading</info>'); $output->writeln('<info>Found lockfile. Reading</info>');
foreach ($this->getLock()->getLockedPackages() as $package) { foreach ($this->getLock()->getLockedPackages() as $package) {
$installer = $this->getComposer()->getInstaller($package->getType()); $installer = $this->getComposer()->getInstaller($package->getType());

View File

@ -13,6 +13,7 @@
namespace Composer; namespace Composer;
use Composer\Installer\InstallerInterface; use Composer\Installer\InstallerInterface;
use Composer\Repository\RepositoryInterface;
/** /**
* @author Jordi Boggiano <j.boggiano@seld.be> * @author Jordi Boggiano <j.boggiano@seld.be>

View File

@ -99,7 +99,7 @@ class ArrayLoader
$links[] = new Package\Link($srcPackageName, $packageName, $constraint, $description); $links[] = new Package\Link($srcPackageName, $packageName, $constraint, $description);
} }
return $requirements; return $links;
} }
private function validateConfig(array $config) private function validateConfig(array $config)

View File

@ -14,6 +14,7 @@ namespace Composer\Repository;
use Composer\Package\MemoryPackage; use Composer\Package\MemoryPackage;
use Composer\Package\BasePackage; use Composer\Package\BasePackage;
use Composer\Package\Version\VersionParser;
/** /**
* @author Jordi Boggiano <j.boggiano@seld.be> * @author Jordi Boggiano <j.boggiano@seld.be>