DependentPatchInterface.php 748 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Setup\Patch;
  7. /**
  8. * Each patch can have dependecies, that should be applied before such patch
  9. *
  10. * / Patch2 --- Patch3
  11. * /
  12. * /
  13. * Patch1
  14. *
  15. * Here you see dependency of Patch1 to Patch2
  16. */
  17. interface DependentPatchInterface
  18. {
  19. /**
  20. * Get array of patches that have to be executed prior to this.
  21. *
  22. * example of implementation:
  23. *
  24. * [
  25. * \Vendor_Name\Module_Name\Setup\Patch\Patch1::class,
  26. * \Vendor_Name\Module_Name\Setup\Patch\Patch2::class
  27. * ]
  28. *
  29. * @return string[]
  30. */
  31. public static function getDependencies();
  32. }