Skip to content

Commit cd70d93

Browse files
javiereguiluzxabbuh
authored andcommitted
Updated the explanation about framework.ide
1 parent 7a8e74a commit cd70d93

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

reference/configuration/framework.rst

+25-24
Original file line numberDiff line numberDiff line change
@@ -208,25 +208,16 @@ ide
208208

209209
**type**: ``string`` **default**: ``null``
210210

211-
Symfony can turn file paths seen in dumps and exception messages into links
212-
that will open in your preferred text editor or IDE.
211+
Symfony turns file paths seen in variable dumps and exception messages into
212+
links that open those files right inside your browser. If you prefer to open
213+
those files in your favorite IDE or text editor, set this option to any of the
214+
following values: ``phpstorm`` (requires `PhpStormProtocol`_), ``sublime``,
215+
``textmate``, ``macvim`` and ``emacs``.
213216

214-
Since every developer uses a different IDE, the recommended way to enable this
215-
feature is to configure it on a system level. This can be done by setting the
216-
``xdebug.file_link_format`` option in your ``php.ini`` configuration file.
217-
218-
.. tip::
219-
220-
Setting the ``xdebug.file_link_format`` ini option works even if the Xdebug
221-
extension is not enabled.
222-
223-
Alternatively, you can use this ``ide`` configuration key.
224-
225-
In both cases, the expected configuration value is a URL template that contains an
226-
``%f`` where the file path is expected and ``%l`` for the line number. When using
227-
the ``ide`` configuration key, percentages signs (``%``) must be escaped by
228-
doubling them. For example, if you use PHPstorm on the Mac OS platform, you will
229-
do something like:
217+
If you use another editor, the expected configuration value is a URL template
218+
that contains an ``%f`` placeholder where the file path is expected and ``%l``
219+
placeholder for the line number (percentage signs (``%``) must be escaped by
220+
doubling them to prevent Symfony from interpreting them as container parameters).
230221

231222
.. configuration-block::
232223

@@ -256,6 +247,22 @@ do something like:
256247
'ide' => 'phpstorm://open?file=%%f&line=%%l',
257248
));
258249
250+
Since every developer uses a different IDE, the recommended way to enable this
251+
feature is to configure it on a system level. This can be done by setting the
252+
``xdebug.file_link_format`` option in your ``php.ini`` configuration file. The
253+
format to use is the same as for the ``framework.ide`` option, but without the
254+
need to escape the percent signs (``%``) by doubling them.
255+
256+
.. note::
257+
258+
If both ``framework.ide`` and ``xdebug.file_link_format`` are defined,
259+
Symfony uses the value of the ``framework.ide`` option.
260+
261+
.. tip::
262+
263+
Setting the ``xdebug.file_link_format`` ini option works even if the Xdebug
264+
extension is not enabled.
265+
259266
.. tip::
260267

261268
When running your app in a container or in a virtual machine, you can tell
@@ -271,12 +278,6 @@ do something like:
271278
.. versionadded:: 3.2
272279
Guest to host mappings were introduced in Symfony 3.2.
273280

274-
.. tip::
275-
276-
Symfony contains preconfigured URLs for some popular IDEs, you can set them
277-
using the following values: ``phpstorm`` (requires `PhpStormProtocol`_),
278-
``sublime``, ``textmate``, ``macvim`` or ``emacs``.
279-
280281
.. _reference-framework-test:
281282

282283
test

0 commit comments

Comments
 (0)