fix(LocalInstaller): prepare for future work

This commit is contained in:
Jérémy Dufraisse 2023-03-13 16:01:38 +01:00
parent 77e3f3d23f
commit 4826be297c
2 changed files with 18 additions and 1 deletions

15
src/LocalInstaller.php Normal file
View File

@ -0,0 +1,15 @@
<?php
/**
* SPDX-License-Identifier: EUPL-1.2
* Authors: see /README.md
*/
namespace Seacms\ComposerInstaller;
use Composer\Installer\LibraryInstaller;
class LocalInstaller extends LibraryInstaller
{
}

View File

@ -12,6 +12,7 @@ use Composer\Config;
use Composer\Json\JsonFile; use Composer\Json\JsonFile;
use Composer\IO\IOInterface; use Composer\IO\IOInterface;
use Seacms\ComposerInstaller\Handler; use Seacms\ComposerInstaller\Handler;
use Seacms\ComposerInstaller\LocalInstaller;
use Seacms\ComposerInstaller\NotFoundFileException; use Seacms\ComposerInstaller\NotFoundFileException;
use TopFloor\ComposerCleanupVcsDirs\Plugin as ParentPlugin; use TopFloor\ComposerCleanupVcsDirs\Plugin as ParentPlugin;
@ -43,7 +44,8 @@ class Plugin extends ParentPlugin
$this->io = $io; $this->io = $io;
$this->handler = new Handler($composer, $io); $this->handler = new Handler($composer, $io);
try { try {
$this->updateConfig($this->getConfigJsonFile()); // list('config' => $config,'path' => $path) = $this->getConfigJsonFile();
// $composer->getInstallationManager()->addInstaller(new LocalInstaller($io,$composer));
} catch (NotFoundFileException $ex){ } catch (NotFoundFileException $ex){
// do nothing // do nothing
} }