File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \UpwardConnector \Model ;
10
10
11
+ use Magento \Framework \Exception \RuntimeException ;
11
12
use Magento \Store \Model \StoreManagerInterface ;
12
13
use Magento \UrlRewrite \Model \UrlFinderInterface ;
13
14
use Magento \UrlRewrite \Service \V1 \Data \UrlRewrite ;
@@ -110,7 +111,7 @@ public function getContext(): ?Context
110
111
public function resolvePageInfo (): ?array
111
112
{
112
113
if (!$ this ->getContext ()) {
113
- throw new \ RuntimeException ('UPWARD Context not set ' );
114
+ throw new RuntimeException ('UPWARD Context not set ' );
114
115
}
115
116
116
117
$ storeId = (int ) $ this ->storeManager ->getStore ()->getId ();
@@ -144,7 +145,7 @@ public function resolvePageInfo(): ?array
144
145
}
145
146
146
147
if (empty ($ resultArray ['id ' ])) {
147
- throw new \ RuntimeException (
148
+ throw new RuntimeException (
148
149
__ ('No such entity found with matching URL key: %url ' , ['url ' => $ url ])
149
150
);
150
151
}
You can’t perform that action at this time.
0 commit comments