214
214
Symfony turns file paths seen in variable dumps and exception messages into
215
215
links that open those files right inside your browser. If you prefer to open
216
216
those files in your favorite IDE or text editor, set this option to any of the
217
- following values: ``phpstorm `` (requires `PhpStormProtocol `_), ``sublime ``,
218
- ``textmate ``, ``macvim `` and ``emacs ``.
217
+ following values: ``phpstorm ``, ``sublime ``, ``textmate ``, ``macvim `` and ``emacs ``.
218
+
219
+ .. note ::
220
+
221
+ The ``phpstorm `` option is supported natively by PhpStorm on MacOS,
222
+ Windows requires `PhpStormProtocol `_,
223
+ and Linux requires `phpstorm-url-handler `_.
219
224
220
225
If you use another editor, the expected configuration value is a URL template
221
226
that contains an ``%f `` placeholder where the file path is expected and ``%l ``
@@ -228,7 +233,7 @@ doubling them to prevent Symfony from interpreting them as container parameters)
228
233
229
234
# app/config/config.yml
230
235
framework :
231
- ide : ' phpstorm ://open?file= %%f&line=%%l'
236
+ ide : ' myide ://open?url=file:// %%f&line=%%l'
232
237
233
238
.. code-block :: xml
234
239
@@ -240,14 +245,14 @@ doubling them to prevent Symfony from interpreting them as container parameters)
240
245
xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
241
246
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
242
247
243
- <framework : config ide =" phpstorm ://open?file= %%f& line=%%l" />
248
+ <framework : config ide =" myide ://open?url=file:// %%f& line=%%l" />
244
249
</container >
245
250
246
251
.. code-block :: php
247
252
248
253
// app/config/config.php
249
254
$container->loadFromExtension('framework', array(
250
- 'ide' => 'phpstorm ://open?file= %%f&line=%%l',
255
+ 'ide' => 'myide ://open?url=file:// %%f&line=%%l',
251
256
));
252
257
253
258
Since every developer uses a different IDE, the recommended way to enable this
@@ -1656,4 +1661,5 @@ Full Default Configuration
1656
1661
.. _`Doctrine Cache` : http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html
1657
1662
.. _`egulias/email-validator` : https://github.com/egulias/EmailValidator
1658
1663
.. _`PhpStormProtocol` : https://github.com/aik099/PhpStormProtocol
1664
+ .. _`phpstorm-url-handler` : https://github.com/sanduhrs/phpstorm-url-handler
1659
1665
.. _`blue/green deployment` : http://martinfowler.com/bliki/BlueGreenDeployment.html
0 commit comments