You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
<?php
|
|
|
|
/**
|
|
* SPDX-License-Identifier: EUPL-1.2
|
|
* Authors: see /README.md
|
|
*/
|
|
|
|
namespace Seacms\ComposerInstaller;
|
|
|
|
use Composer\Composer;
|
|
use Composer\IO\IOInterface;
|
|
use Composer\Plugin\PluginInterface;
|
|
use TopFloor\ComposerCleanupVcsDirs\Plugin as TopFloorPlugin;
|
|
|
|
if (class_exists(TopFloorPlugin::class,false)){
|
|
abstract class ParentPlugin extends TopFloorPlugin
|
|
{
|
|
/**
|
|
* const to test if TopFloorPlugin
|
|
* @var bool
|
|
*/
|
|
protected const IS_TOP_FLOOR_PLUGIN = true;
|
|
}
|
|
} else {
|
|
abstract class ParentPlugin implements PluginInterface
|
|
{
|
|
|
|
/**
|
|
* const to test if TopFloorPlugin
|
|
* @var bool
|
|
*/
|
|
protected const IS_TOP_FLOOR_PLUGIN = false;
|
|
|
|
/**
|
|
* Deactivation hook.
|
|
*
|
|
* @param Composer $composer
|
|
* @param IOInterface $io
|
|
*/
|
|
public function deactivate(Composer $composer, IOInterface $io) {
|
|
}
|
|
|
|
/**
|
|
* Uninstall hook.
|
|
*
|
|
* @param Composer $composer
|
|
* @param IOInterface $io
|
|
*/
|
|
public function uninstall(Composer $composer, IOInterface $io) {
|
|
}
|
|
}
|
|
} |