Fix namespace/use/typo issues
parent
10bd9c3729
commit
d27691a67f
|
@ -23,7 +23,7 @@ $composer->setRepository('Platform', new Repository\PlatformRepository());
|
|||
$composer->setRepository('Packagist', new Repository\ComposerRepository('http://packagist.org'));
|
||||
|
||||
// initialize package
|
||||
$loader = new Package\Loader\Json();
|
||||
$loader = new Package\Loader\JsonLoader();
|
||||
$package = $loader->load('composer.json');
|
||||
|
||||
// initialize lock
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
namespace Composer\Command;
|
||||
|
||||
use Composer\DependencyResolver;
|
||||
use Composer\DependencyResolver\Pool;
|
||||
use Composer\DependencyResolver\Request;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
|
@ -43,7 +45,7 @@ EOT
|
|||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
if ($this->getLock()->isLocked()) {
|
||||
$this->writeln('<info>Found lockfile. Reading</info>');
|
||||
$output->writeln('<info>Found lockfile. Reading</info>');
|
||||
|
||||
foreach ($this->getLock()->getLockedPackages() as $package) {
|
||||
$installer = $this->getComposer()->getInstaller($package->getType());
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
namespace Composer;
|
||||
|
||||
use Composer\Installer\InstallerInterface;
|
||||
use Composer\Repository\RepositoryInterface;
|
||||
|
||||
/**
|
||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||
|
|
|
@ -99,7 +99,7 @@ class ArrayLoader
|
|||
$links[] = new Package\Link($srcPackageName, $packageName, $constraint, $description);
|
||||
}
|
||||
|
||||
return $requirements;
|
||||
return $links;
|
||||
}
|
||||
|
||||
private function validateConfig(array $config)
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace Composer\Repository;
|
|||
|
||||
use Composer\Package\MemoryPackage;
|
||||
use Composer\Package\BasePackage;
|
||||
use Composer\Package\Version\VersionParser;
|
||||
|
||||
/**
|
||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||
|
|
Loading…
Reference in New Issue