Skip to content

Commit 1124b89

Browse files
author
joweecaquicla
committed
magento/adobe-stock-integration#1716: Use Magento naming approach for FolderTree class - renamed function in FolderTree class
1 parent 365c18f commit 1124b89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/MediaGalleryUi/Controller/Adminhtml/Directories/GetTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(
5959
public function execute()
6060
{
6161
try {
62-
$responseContent[] = $this->folderTree->buildTree();
62+
$responseContent[] = $this->folderTree->execute();
6363
$responseCode = self::HTTP_OK;
6464
} catch (\Exception $exception) {
6565
$this->logger->critical($exception);

app/code/Magento/MediaGalleryUi/Model/Directories/FolderTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(
5656
* @return array
5757
* @throws ValidatorException
5858
*/
59-
public function buildTree(bool $skipRoot = true): array
59+
public function execute(bool $skipRoot = true): array
6060
{
6161
return $this->buildFolderTree($this->getDirectories(), $skipRoot);
6262
}

0 commit comments

Comments
 (0)