@@ -85,25 +85,48 @@ If you're using an IDE like TextMate or Mac Vim, then Symfony can turn all
85
85
of the file paths in an exception message into a link, which will open that
86
86
file in your IDE.
87
87
88
- If you use TextMate or Mac Vim , you can simply use one of the following built-in
89
- values :
88
+ Symfony contains preconfigured urls for some popular IDEs , you can set them
89
+ using the following keys :
90
90
91
91
* ``textmate ``
92
92
* ``macvim ``
93
+ * ``emacs ``
94
+ * ``sublime ``
93
95
94
- You can also specify a custom file link string. If you do this, all percentage
95
- signs (``% ``) must be doubled to escape that character. For example, the
96
- full TextMate string would look like this:
96
+ .. versionadded :: 2.3.14
97
+ The ``emacs `` and ``sublime `` editors were introduced in Symfony 2.3.14.
97
98
98
- .. code-block :: yaml
99
+ You can also specify a custom url string. If you do this, all percentage
100
+ signs (``% ``) must be doubled to escape that character. For example, if you
101
+ have installed `PhpStormOpener `_ and use PHPstorm, you will do something like:
99
102
100
- framework :
101
- ide : " txmt://open?url=file://%%f&line=%%l"
103
+ .. configuration-block ::
104
+
105
+ .. code-block :: yaml
106
+
107
+ framework :
108
+ ide : " pstorm://%%f:%%l"
109
+
110
+ .. code-block :: xml
111
+
112
+ <?xml version =" 1.0" charset =" UTF-8" ?>
113
+ <container xmlns =" http://symfony.com/schema/dic/service"
114
+ xmlns : framework =" http://symfony.com/schema/dic/symfony" >
115
+
116
+ <framework : config ide =" pstorm://%%f:%%l" />
117
+
118
+ </container >
119
+
120
+ .. code-block :: php
121
+
122
+ $container->loadFromExtension('framework', array(
123
+ 'ide' => 'pstorm://%%f:%%l',
124
+ ));
102
125
103
126
Of course, since every developer uses a different IDE, it's better to set
104
127
this on a system level. This can be done by setting the ``xdebug.file_link_format ``
105
- ``php.ini `` value to the file link string. If this configuration value is set, then
106
- the ``ide `` option does not need to be specified .
128
+ in the ``php.ini `` configuration to the url string. If this configuration value
129
+ is set, then the ``ide `` option will be ignored .
107
130
108
131
.. _reference-framework-test :
109
132
@@ -574,3 +597,4 @@ Full default Configuration
574
597
debug : %kernel.debug%
575
598
576
599
.. _`protocol-relative` : http://tools.ietf.org/html/rfc3986#section-4.2
600
+ .. _`PhpStormOpener` : https://github.com./pinepain/PhpStormOpener
0 commit comments