Skip to content

Commit

Permalink
Merge pull request #73 from gerarddevisser/fix-phpstorm-remote-call
Browse files Browse the repository at this point in the history
Fix remote calls to PhpStorm
  • Loading branch information
mikimpe authored Apr 22, 2024
2 parents 306de1b + 6bbe164 commit 2aa951c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getPhpStormPort()
{
$port = (int) $this->scopeConfig->getValue(self::XML_PATH_PHPSTORM_PORT);
if (!$port) {
$port = 8091;
$port = 63342;
}
return $port;
}
Expand All @@ -112,7 +112,7 @@ public function getPhpStormUrl($file)
return null;
}

return 'http://127.0.0.1:' . $this->getPhpStormPort() . '?message=' . urlencode($file);
return 'http://127.0.0.1:' . $this->getPhpStormPort() . '/api/file?file=' . urlencode(ltrim($file, '/'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</general>
<phpstorm>
<enabled>0</enabled>
<port>8091</port>
<port>63342</port>
</phpstorm>
</msp_devtools>
</default>
Expand Down

0 comments on commit 2aa951c

Please sign in to comment.