18 lines
474 B
PHP
18 lines
474 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MintyPHP\App\Module\Contracts;
|
||
|
|
|
||
|
|
use MintyPHP\App\AppContainer;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Handles cleanup when a module is deactivated.
|
||
|
|
*
|
||
|
|
* Invoked by `bin/module-deactivate.php` after a module has been removed
|
||
|
|
* from the enabled list. The handler receives the full app container and
|
||
|
|
* can perform cleanup tasks like removing orphaned data or revoking permissions.
|
||
|
|
*/
|
||
|
|
interface ModuleDeactivationHandler
|
||
|
|
{
|
||
|
|
public function deactivate(AppContainer $container): void;
|
||
|
|
}
|