Skip to content

Commit 2b9cebc

Browse files
committed
fixed my code change
1 parent 68c93f1 commit 2b9cebc

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"magento/magento-composer-installer": "*"
77
},
88
"type": "magento2-module",
9-
"version": "0.1.2",
9+
"version": "0.1.3",
1010
"autoload": {
1111
"files": [
1212
"src/registration.php"

src/Controller/Router.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,14 @@ public function __construct(
113113
*/
114114
public function match(\Magento\Framework\App\RequestInterface $request)
115115
{
116-
try {
117-
$isMatch = call_user_func([$this, $method], $identifier);
118-
}
119-
catch (ApiException $exception) {
120-
return false;
121-
}
122116

123117
foreach ($this->_matchers as $action => $method) {
124-
$isMatch = call_user_func([$this, $method], $identifier);
118+
try {
119+
$isMatch = call_user_func([$this, $method], $identifier);
120+
}
121+
catch (ApiException $exception) {
122+
return false;
123+
}
125124

126125
if ($isMatch) {
127126
$request->setModuleName('skywire_wordpress_api')

src/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Skywire_WordpressApi" setup_version="0.1.2">
3+
<module name="Skywire_WordpressApi" setup_version="0.1.3">
44
</module>
55
</config>

0 commit comments

Comments
 (0)