UninstallInterface.php 567 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Setup;
  7. /**
  8. * Interface for handling data removal during module uninstall
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface UninstallInterface
  14. {
  15. /**
  16. * Invoked when remove-data flag is set during module uninstall.
  17. *
  18. * @param SchemaSetupInterface $setup
  19. * @param ModuleContextInterface $context
  20. * @return void
  21. */
  22. public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context);
  23. }