Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
FileResolverStub Class Reference
Inheritance diagram for FileResolverStub:
FileResolverInterface

Public Member Functions

 get ($filename, $scope)
 

Detailed Description

Definition at line 9 of file FileResolverStub.php.

Member Function Documentation

◆ get()

get (   $filename,
  $scope 
)

{Retrieve the list of configuration files with given name that relate to specified scope

Parameters
string$filename
string$scope
Returns
array
}

Implements FileResolverInterface.

Definition at line 14 of file FileResolverStub.php.

15  {
17  $fileReadFactory = $objectManager->create(\Magento\Framework\Filesystem\File\ReadFactory::class);
18  $paths = [realpath(__DIR__ . '/../_files/etc/') . '/extension_attributes.xml'];
19  return new \Magento\Framework\Config\FileIterator($fileReadFactory, $paths);
20  }
$objectManager
Definition: bootstrap.php:17
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60
$paths
Definition: _bootstrap.php:83

The documentation for this class was generated from the following file: