PostProcessorInterface.php 692 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Config\Spi;
  7. use Magento\Framework\App\Config\ConfigTypeInterface;
  8. use Magento\Framework\App\Config\Reader\Source\SourceInterface;
  9. /**
  10. * Allows to use custom callbacks and functions after collecting config from all sources
  11. *
  12. * @see SourceInterface
  13. * @see ConfigTypeInterface
  14. * @package Magento\Framework\App\Config\Spi
  15. */
  16. interface PostProcessorInterface
  17. {
  18. /**
  19. * Process config after reading and converting to appropriate format
  20. *
  21. * @param array $config
  22. * @return array
  23. */
  24. public function process(array $config);
  25. }