Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ some environment variable that stores the name of the IDE/editor:
# config/packages/framework.yaml
framework:
# the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.)
ide: '%env(resolve:CODE_EDITOR)%'
ide: '%env(resolve:SYMFONY_IDE)%'

.. code-block:: xml

Expand All @@ -184,7 +184,7 @@ some environment variable that stores the name of the IDE/editor:
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<!-- the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.) -->
<framework:config ide="%env(resolve:CODE_EDITOR)%"/>
<framework:config ide="%env(resolve:SYMFONY_IDE)%"/>
</container>

.. code-block:: php
Expand All @@ -194,9 +194,14 @@ some environment variable that stores the name of the IDE/editor:

return static function (FrameworkConfig $framework) {
// the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.)
$framework->ide('%env(resolve:CODE_EDITOR)%');
$framework->ide('%env(resolve:SYMFONY_IDE)%');
};

.. versionadded:: 6.1

The environment variable `SYMFONY_IDE` was introduced in Symfony 6.1.
It is read by default when `framework.ide` config is not set.

Another alternative is to set the ``xdebug.file_link_format`` option in your
``php.ini`` configuration file. The format to use is the same as for the
``framework.ide`` option, but without the need to escape the percent signs
Expand Down