Skip to content

Commit 3a68da9

Browse files
committed
Bring balance to lifecycle hooks
1 parent c8c6dae commit 3a68da9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/Plugin.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@
1010

1111
class Plugin implements PluginInterface, EventSubscriberInterface
1212
{
13-
public function activate(Composer $composer, IOInterface $io): void {}
13+
public function activate(Composer $composer, IOInterface $io): void
14+
{
15+
$io->write('This is the way.');
16+
}
1417

15-
public function deactivate(Composer $composer, IOInterface $io): void {}
18+
public function deactivate(Composer $composer, IOInterface $io): void
19+
{
20+
$io->write('May the Force be with you.');
21+
}
1622

17-
public function uninstall(Composer $composer, IOInterface $io): void {}
23+
public function uninstall(Composer $composer, IOInterface $io): void
24+
{
25+
$io->write('I\'ll see you again. I promise ©️');
26+
}
1827

1928
public static function getSubscribedEvents(): array
2029
{

0 commit comments

Comments
 (0)