2026-03-19 18:20:13 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\App\Module\Contracts;
|
|
|
|
|
|
|
|
|
|
use MintyPHP\App\AppContainer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Handles cleanup when a module is deactivated.
|
|
|
|
|
*
|
2026-04-01 17:14:20 +02:00
|
|
|
* Invoked by `php bin/console module:deactivate` after a module has been removed
|
2026-03-19 18:20:13 +01:00
|
|
|
* 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;
|
|
|
|
|
}
|