Fix typos
parent
c8859240d2
commit
d4b7f802df
|
@ -49,7 +49,7 @@ class InstallerInstaller extends LibraryInstaller
|
||||||
{
|
{
|
||||||
$extra = $package->getExtra();
|
$extra = $package->getExtra();
|
||||||
if (empty($extra['class'])) {
|
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);
|
parent::install($package);
|
||||||
|
@ -63,7 +63,7 @@ class InstallerInstaller extends LibraryInstaller
|
||||||
{
|
{
|
||||||
$extra = $target->getExtra();
|
$extra = $target->getExtra();
|
||||||
if (empty($extra['class'])) {
|
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);
|
parent::update($initial, $target);
|
||||||
|
@ -74,6 +74,7 @@ class InstallerInstaller extends LibraryInstaller
|
||||||
{
|
{
|
||||||
$downloadPath = $this->getInstallPath($package);
|
$downloadPath = $this->getInstallPath($package);
|
||||||
|
|
||||||
|
$extra = $target->getExtra();
|
||||||
$class = $extra['class'];
|
$class = $extra['class'];
|
||||||
if (class_exists($class, false)) {
|
if (class_exists($class, false)) {
|
||||||
$reflClass = new \ReflectionClass($class);
|
$reflClass = new \ReflectionClass($class);
|
||||||
|
@ -83,7 +84,7 @@ class InstallerInstaller extends LibraryInstaller
|
||||||
$class .= '_composer_tmp';
|
$class .= '_composer_tmp';
|
||||||
} else {
|
} else {
|
||||||
$generator = new AutoloadGenerator;
|
$generator = new AutoloadGenerator;
|
||||||
$map = $generator->parseAutoloads(array($target, $downloadPath));
|
$map = $generator->parseAutoloads(array($package, $downloadPath));
|
||||||
$generator->createLoader($map)->register();
|
$generator->createLoader($map)->register();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue