Skip to content

Commit 79a1087

Browse files
committed
Revert "Removed unused parameter from constructor"
This reverts commit 0db89b2.
1 parent c50595e commit 79a1087

File tree

1 file changed

+7
-0
lines changed
  • app/code/Magento/Developer/Model/XmlCatalog/Format

1 file changed

+7
-0
lines changed

app/code/Magento/Developer/Model/XmlCatalog/Format/PhpStorm.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ class PhpStorm implements FormatInterface
2121
const PROJECT_PATH_IDENTIFIER = '$PROJECT_DIR$';
2222
const IDEA_PATH = '.idea';
2323

24+
/**
25+
* @var ReadInterface
26+
*/
27+
private $currentDirRead;
28+
2429
/**
2530
* @var WriteFactory
2631
*/
@@ -37,9 +42,11 @@ class PhpStorm implements FormatInterface
3742
* @param DomDocumentFactory $domDocumentFactory
3843
*/
3944
public function __construct(
45+
ReadFactory $readFactory,
4046
WriteFactory $fileWriteFactory,
4147
DomDocumentFactory $domDocumentFactory = null
4248
) {
49+
$this->currentDirRead = $readFactory->create(getcwd());
4350
$this->fileWriteFactory = $fileWriteFactory;
4451
$this->domDocumentFactory = $domDocumentFactory ?: ObjectManager::getInstance()->get(DomDocumentFactory::class);
4552
}

0 commit comments

Comments
 (0)