Skip to content

Commit 2aa951c

Browse files
authored
Merge pull request #73 from gerarddevisser/fix-phpstorm-remote-call
Fix remote calls to PhpStorm
2 parents 306de1b + 6bbe164 commit 2aa951c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Model/Config.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getPhpStormPort()
9595
{
9696
$port = (int) $this->scopeConfig->getValue(self::XML_PATH_PHPSTORM_PORT);
9797
if (!$port) {
98-
$port = 8091;
98+
$port = 63342;
9999
}
100100
return $port;
101101
}
@@ -112,7 +112,7 @@ public function getPhpStormUrl($file)
112112
return null;
113113
}
114114

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

118118
/**

etc/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</general>
3030
<phpstorm>
3131
<enabled>0</enabled>
32-
<port>8091</port>
32+
<port>63342</port>
3333
</phpstorm>
3434
</msp_devtools>
3535
</default>

0 commit comments

Comments
 (0)