fix(LocalInstaller): prepare for future work

master
dufraissejeremy 2 years ago
parent 77e3f3d23f
commit 4826be297c
  1. 15
      src/LocalInstaller.php
  2. 4
      src/Plugin.php

@ -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
{
}

@ -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
} }

Loading…
Cancel
Save