ConfigSetProcessorInterface.php 935 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Config\Console\Command\ConfigSet;
  7. use Magento\Config\Console\Command\ConfigSetCommand;
  8. use Magento\Framework\Exception\CouldNotSaveException;
  9. /**
  10. * Allows to process different flows of config:set command.
  11. *
  12. * @see ConfigSetCommand
  13. *
  14. * @api
  15. * @since 101.0.0
  16. */
  17. interface ConfigSetProcessorInterface
  18. {
  19. /**
  20. * Processes config:set command.
  21. *
  22. * @param string $path The configuration path in format group/section/field_name
  23. * @param string $value The configuration value
  24. * @param string $scope The configuration scope (default, website, or store)
  25. * @param string $scopeCode The scope code
  26. * @return void
  27. * @throws CouldNotSaveException An exception on processing error
  28. * @since 101.0.0
  29. */
  30. public function process($path, $value, $scope, $scopeCode);
  31. }