Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FileResolver.php
Go to the documentation of this file.
1 <?php
7 
11 
16 {
20  private $fileCollectorFactory;
21 
25  private $scope;
26 
30  public function __construct(AggregatedFileCollectorFactory $fileCollectorFactory)
31  {
32  $this->fileCollectorFactory = $fileCollectorFactory;
33  }
34 
38  public function get($filename, $scope)
39  {
40  $this->scope = $scope;
42  $aggregatedFiles = $this->fileCollectorFactory->create();
43  return $aggregatedFiles->collectFiles($filename);
44  }
45 }
__construct(AggregatedFileCollectorFactory $fileCollectorFactory)