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 88
99namespace Magento \UpwardConnector \Model ;
1010
11+ use Magento \Framework \Exception \RuntimeException ;
1112use Magento \Store \Model \StoreManagerInterface ;
1213use Magento \UrlRewrite \Model \UrlFinderInterface ;
1314use Magento \UrlRewrite \Service \V1 \Data \UrlRewrite ;
@@ -110,7 +111,7 @@ public function getContext(): ?Context
110111 public function resolvePageInfo (): ?array
111112 {
112113 if (!$ this ->getContext ()) {
113- throw new \ RuntimeException ('UPWARD Context not set ' );
114+ throw new RuntimeException ('UPWARD Context not set ' );
114115 }
115116
116117 $ storeId = (int ) $ this ->storeManager ->getStore ()->getId ();
@@ -144,7 +145,7 @@ public function resolvePageInfo(): ?array
144145 }
145146
146147 if (empty ($ resultArray ['id ' ])) {
147- throw new \ RuntimeException (
148+ throw new RuntimeException (
148149 __ ('No such entity found with matching URL key: %url ' , ['url ' => $ url ])
149150 );
150151 }
You can’t perform that action at this time.
0 commit comments