Skip to content

Commit 389ef8b

Browse files
committed
wip
1 parent fdbfab3 commit 389ef8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PluginLifecycle.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ public function boot(): void
99
$this->onBoot();
1010
add_action('init', $this->onInit(...));
1111
register_activation_hook(ENTRYPOINT_FILE, $this->onActivation(...));
12-
register_deactivation_hook(ENTRYPOINT_FILE, $this->onDeactivation(...));
12+
register_deactivation_hook(ENTRYPOINT_FILE, $this->onUninstall(...));
1313
}
1414

15+
/** @internal */
1516
abstract protected function onBoot(): void;
1617

18+
/** @internal */
1719
abstract public function onInit(): void;
1820

21+
/** @internal */
1922
abstract public function onActivation(): void;
2023

24+
/** @internal */
2125
abstract public function onUninstall(): void;
2226
}

0 commit comments

Comments
 (0)