ConfigInterface.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Module\Output;
  7. /**
  8. * @deprecated 101.0.0 Magento does not support disabling/enabling modules output from the Admin Panel since 2.2.0
  9. * version. Module output can still be enabled/disabled in configuration files.
  10. */
  11. interface ConfigInterface
  12. {
  13. /**
  14. * Whether a module is enabled in the configuration or not
  15. *
  16. * @param string $moduleName Fully-qualified module name
  17. * @deprecated 101.0.0 Magento does not support disabling/enabling modules output from the Admin Panel since 2.2.0
  18. * version. Module output can still be enabled/disabled in configuration files. However, this functionality should
  19. * not be used in future development. Module design should explicitly state dependencies to avoid requiring output
  20. * disabling. This functionality will temporarily be kept in Magento core, as there are unresolved modularity
  21. * issues that will be addressed in future releases.
  22. * @return boolean
  23. */
  24. public function isEnabled($moduleName);
  25. /**
  26. * Retrieve module enabled specific path
  27. *
  28. * @param string $path Fully-qualified config path
  29. * @deprecated 101.0.0 Magento does not support disabling/enabling modules output from the Admin Panel since 2.2.0
  30. * version. Module output can still be enabled/disabled in configuration files. However, this functionality should
  31. * not be used in future development. Module design should explicitly state dependencies to avoid requiring output
  32. * disabling. This functionality will temporarily be kept in Magento core, as there are unresolved modularity
  33. * issues that will be addressed in future releases.
  34. * @return boolean
  35. */
  36. public function isSetFlag($path);
  37. }