|
7 | 7 | */
|
8 | 8 | namespace Magento\Framework\Config;
|
9 | 9 |
|
10 |
| -use Magento\Framework\Module\Dir\Reader as DirReader; |
| 10 | +use Magento\Framework\App\Filesystem\DirectoryList; |
11 | 11 | use Magento\Framework\Filesystem;
|
| 12 | +use Magento\Framework\Module\Dir\Reader as DirReader; |
| 13 | +use Magento\Framework\View\Design\Fallback\RulePool; |
| 14 | +use Magento\Framework\View\Design\FileResolution\Fallback\ResolverInterface; |
12 | 15 | use Magento\Framework\View\Design\ThemeInterface;
|
13 | 16 | use Magento\Framework\View\DesignInterface;
|
14 |
| -use Magento\Framework\App\Filesystem\DirectoryList; |
15 |
| -use Magento\Framework\View\Design\FileResolution\Fallback\ResolverInterface; |
16 |
| -use Magento\Framework\View\Design\Fallback\RulePool; |
17 | 17 |
|
18 | 18 | /**
|
19 | 19 | * Class FileResolver
|
@@ -53,11 +53,17 @@ class FileResolver implements \Magento\Framework\Config\FileResolverInterface, D
|
53 | 53 | */
|
54 | 54 | protected $resolver;
|
55 | 55 |
|
| 56 | + /** |
| 57 | + * @var DirectoryList |
| 58 | + * @deprecated Unused class property |
| 59 | + */ |
| 60 | + private $directoryList; |
| 61 | + |
56 | 62 | /**
|
57 | 63 | * @param DirReader $moduleReader
|
58 | 64 | * @param FileIteratorFactory $iteratorFactory
|
59 | 65 | * @param DesignInterface $designInterface
|
60 |
| - * @param DirectoryList $directoryList |
| 66 | + * @param DirectoryList $directoryList @deprecated |
61 | 67 | * @param Filesystem $filesystem
|
62 | 68 | * @param ResolverInterface $resolver
|
63 | 69 | */
|
@@ -105,7 +111,7 @@ public function get($filename, $scope)
|
105 | 111 | );
|
106 | 112 | if (file_exists($designPath)) {
|
107 | 113 | try {
|
108 |
| - $designDom = new \DOMDocument; |
| 114 | + $designDom = new \DOMDocument(); |
109 | 115 | $designDom->load($designPath);
|
110 | 116 | $iterator[$designPath] = $designDom->saveXML();
|
111 | 117 | } catch (\Exception $e) {
|
@@ -174,7 +180,7 @@ private function getParentConfigs(ThemeInterface $theme, array $iterator, $index
|
174 | 180 | $theme->getParentTheme()
|
175 | 181 | );
|
176 | 182 |
|
177 |
| - $parentDom = new \DOMDocument; |
| 183 | + $parentDom = new \DOMDocument(); |
178 | 184 | $parentDom->load($parentDesignPath);
|
179 | 185 |
|
180 | 186 | $iterator[$index] = $parentDom->saveXML();
|
|
0 commit comments