File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,6 @@ public function getFormattedContentAs(
36
36
$ this ->data ,
37
37
FeedFactoryInterface::FORMAT_RSS
38
38
);
39
- return $ this -> feed ->saveXml ();
39
+ return $ feed ->saveXml ();
40
40
}
41
41
}
Original file line number Diff line number Diff line change 14
14
*/
15
15
class FeedFactory implements FeedFactoryInterface
16
16
{
17
- /**
18
- * @var FeedProcessorInterface
19
- */
20
- private $ feedProcessor ;
21
-
22
17
/**
23
18
* @var LoggerInterface
24
19
*/
@@ -53,14 +48,14 @@ public function create(
53
48
) {
54
49
if (!isset ($ this ->formats [$ format ])) {
55
50
throw new \Magento \Framework \Exception \InputException (
56
- __ ('The format is not supported ' ),
51
+ new \ Magento \ Framework \ Phrase ('The format is not supported ' ),
57
52
$ e
58
53
);
59
54
}
60
55
61
56
if (!is_subclass_of ($ this ->formats [$ format ], \Magento \Framework \App \FeedInterface::class)) {
62
57
throw new \Magento \Framework \Exception \InputException (
63
- __ ('Wrong format handler type ' ),
58
+ new \ Magento \ Framework \ Phrase ('Wrong format handler type ' ),
64
59
$ e
65
60
);
66
61
}
@@ -73,7 +68,7 @@ public function create(
73
68
} catch (\Exception $ e ) {
74
69
$ this ->logger ->error ($ e ->getMessage ());
75
70
throw new \Magento \Framework \Exception \RuntimeException (
76
- __ ('There has been an error with import ' ),
71
+ new \ Magento \ Framework \ Phrase ('There has been an error with import ' ),
77
72
$ e
78
73
);
79
74
}
You can’t perform that action at this time.
0 commit comments