1
0
Fork 0

Fix typos

pull/88/head
Jordi Boggiano 2011-11-04 16:33:48 +01:00
parent c8859240d2
commit d4b7f802df
1 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class InstallerInstaller extends LibraryInstaller
{
$extra = $package->getExtra();
if (empty($extra['class'])) {
throw new \UnexpectedValueException('Error while installing '.$target->getPrettyName().', composer-installer packages should have a class defined in their extra key to be usable.')
throw new \UnexpectedValueException('Error while installing '.$target->getPrettyName().', composer-installer packages should have a class defined in their extra key to be usable.');
}
parent::install($package);
@ -63,7 +63,7 @@ class InstallerInstaller extends LibraryInstaller
{
$extra = $target->getExtra();
if (empty($extra['class'])) {
throw new \UnexpectedValueException('Error while installing '.$target->getPrettyName().', composer-installer packages should have a class defined in their extra key to be usable.')
throw new \UnexpectedValueException('Error while installing '.$target->getPrettyName().', composer-installer packages should have a class defined in their extra key to be usable.');
}
parent::update($initial, $target);
@ -74,6 +74,7 @@ class InstallerInstaller extends LibraryInstaller
{
$downloadPath = $this->getInstallPath($package);
$extra = $target->getExtra();
$class = $extra['class'];
if (class_exists($class, false)) {
$reflClass = new \ReflectionClass($class);
@ -83,7 +84,7 @@ class InstallerInstaller extends LibraryInstaller
$class .= '_composer_tmp';
} else {
$generator = new AutoloadGenerator;
$map = $generator->parseAutoloads(array($target, $downloadPath));
$map = $generator->parseAutoloads(array($package, $downloadPath));
$generator->createLoader($map)->register();
}