Skip to content

Commit 5eb2eeb

Browse files
committed
minor #7197 Updated the explanation about framework.ide (javiereguiluz)
This PR was squashed before being merged into the 3.2 branch (closes #7197). Discussion ---------- Updated the explanation about framework.ide This fixes #7165. This is a reword to explain the new behavior in 3.2 and to change the order in which things are explained. Commits ------- cd70d93 Updated the explanation about framework.ide
2 parents 80eaad3 + cd70d93 commit 5eb2eeb

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

reference/configuration/framework.rst

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -211,25 +211,16 @@ ide
211211

212212
**type**: ``string`` **default**: ``null``
213213

214-
Symfony can turn file paths seen in dumps and exception messages into links
215-
that will open in your preferred text editor or IDE.
214+
Symfony turns file paths seen in variable dumps and exception messages into
215+
links that open those files right inside your browser. If you prefer to open
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``.
216219

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

234225
.. configuration-block::
235226

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

264271
When running your app in a container or in a virtual machine, you can tell
@@ -274,12 +281,6 @@ do something like:
274281
.. versionadded:: 3.2
275282
Guest to host mappings were introduced in Symfony 3.2.
276283

277-
.. tip::
278-
279-
Symfony contains preconfigured URLs for some popular IDEs, you can set them
280-
using the following values: ``phpstorm`` (requires `PhpStormProtocol`_),
281-
``sublime``, ``textmate``, ``macvim`` or ``emacs``.
282-
283284
.. _reference-framework-test:
284285

285286
test

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy