25 lines
798 B
PHP
25 lines
798 B
PHP
|
<?php
|
||
|
|
||
|
use Composer\Plugin\PluginInterface;
|
||
|
use Composer\Composer;
|
||
|
use Composer\IO\IOInterface;
|
||
|
use Composer\Json\JsonFile;
|
||
|
use Composer\InstalledVersions;
|
||
|
|
||
|
class PluginA implements PluginInterface
|
||
|
{
|
||
|
public function activate(Composer $composer, IOInterface $io)
|
||
|
{
|
||
|
echo '!!PluginA:'.InstalledVersions::getVersion('plugin/a').JsonFile::encode(InstalledVersions::getInstalledPackages(), 320)."\n";
|
||
|
echo '!!Versions:console:'.InstalledVersions::getVersion('symfony/console').';process:'.InstalledVersions::getVersion('symfony/process').';filesystem:'.InstalledVersions::getVersion('symfony/filesystem')."\n";
|
||
|
}
|
||
|
|
||
|
public function deactivate(Composer $composer, IOInterface $io)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function uninstall(Composer $composer, IOInterface $io)
|
||
|
{
|
||
|
}
|
||
|
}
|