parent
3a1a8da810
commit
0de838a4df
@ -0,0 +1,52 @@ |
|||||||
|
<?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) { |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue