Skip to content

Commit fd178e8

Browse files
author
Stanislav Idolov
committed
MAGETWO-70886: Zend feed refactoring #9347
1 parent 0476689 commit fd178e8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
</argument>
285285
</arguments>
286286
</type>
287-
<type name="Magento\Framework\FeedFactory">
287+
<type name="Magento\Framework\App\FeedFactory">
288288
<arguments>
289289
<argument name="formats" xsi:type="array">
290290
<item name="rss" xsi:type="string">Magento\Framework\App\Feed</item>

lib/internal/Magento/Framework/App/Feed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ class Feed implements FeedInterface
2121

2222
/**
2323
* Feed constructor.
24-
* @param array $feeds
24+
* @param array $data
2525
*/
26-
public function __construct(array $feeds)
26+
public function __construct(array $data)
2727
{
28-
$this->feeds = $feeds;
28+
$this->feeds = $data;
2929
}
3030

3131
/**

lib/internal/Magento/Framework/App/FeedFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function create(array $data, string $format = FeedFactoryInterface::FORMA
6565
try {
6666
return $this->objectManager->create(
6767
$this->formats[$format],
68-
$data
68+
['data' => $data]
6969
);
7070
} catch (\Exception $e) {
7171
$this->logger->error($e->getMessage());

0 commit comments

Comments
 (0)