SourceInterface.php 521 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Config\Reader\Source;
  7. /**
  8. * Provide access to data. Each Source can be responsible for each storage, where config data can be placed
  9. *
  10. * @package Magento\Framework\App\Config\Reader\Source
  11. */
  12. interface SourceInterface
  13. {
  14. /**
  15. * Retrieve config by scope
  16. *
  17. * @param string|null $scopeCode
  18. * @return array
  19. */
  20. public function get($scopeCode = null);
  21. }