This commit is contained in:
Daniil Gentili 2020-11-01 21:44:03 +01:00
parent 0d950a82a8
commit 28a7b11dd4
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
1 changed files with 27 additions and 1 deletions

View File

@ -37,6 +37,32 @@ class Plugin implements PluginInterface, EventSubscriberInterface
$this->io = $io;
}
/**
* Remove any hooks from Composer.
*
* This will be called when a plugin is deactivated before being
* uninstalled, but also before it gets upgraded to a new version
* so the old one can be deactivated and the new one activated.
*
* @param Composer $composer
* @param IOInterface $io
*/
public function deactivate(Composer $composer, IOInterface $io)
{
}
/**
* Prepare the plugin to be uninstalled.
*
* This will be called after deactivate.
*
* @param Composer $composer
* @param IOInterface $io
*/
public function uninstall(Composer $composer, IOInterface $io)
{
}
/**
* {@inheritdoc}
*/
@ -52,7 +78,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface
public function onInstall(PackageEvent $event): void
{
var_dumP($event);
\var_dumP($event);
}
/**