ScopeConfig.php 649 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Mtf\Config\FileResolver;
  7. use Magento\Mtf\Util\Iterator\File;
  8. /**
  9. * Provides MTF configuration file from specified scope.
  10. */
  11. class ScopeConfig extends Primary
  12. {
  13. /**
  14. * Retrieve the configuration file with given name that relate to MTF global configuration.
  15. *
  16. * @param string $filename
  17. * @param string $scope
  18. * @return File|array
  19. */
  20. public function get($filename, $scope)
  21. {
  22. return new File([MTF_BP . DIRECTORY_SEPARATOR . $scope . DIRECTORY_SEPARATOR . $filename]);
  23. }
  24. }