Skip to content

Commit 2bed596

Browse files
94nonijaviereguiluz
authored andcommitted
[Framework] Read env var SYMFONY_IDE by default for framework.ide
1 parent 52cad10 commit 2bed596

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

reference/configuration/framework.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ some environment variable that stores the name of the IDE/editor:
170170
# config/packages/framework.yaml
171171
framework:
172172
# the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.)
173-
ide: '%env(resolve:CODE_EDITOR)%'
173+
ide: '%env(resolve:SYMFONY_IDE)%'
174174
175175
.. code-block:: xml
176176
@@ -184,7 +184,7 @@ some environment variable that stores the name of the IDE/editor:
184184
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
185185
186186
<!-- the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.) -->
187-
<framework:config ide="%env(resolve:CODE_EDITOR)%"/>
187+
<framework:config ide="%env(resolve:SYMFONY_IDE)%"/>
188188
</container>
189189
190190
.. code-block:: php
@@ -194,9 +194,14 @@ some environment variable that stores the name of the IDE/editor:
194194
195195
return static function (FrameworkConfig $framework) {
196196
// the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.)
197-
$framework->ide('%env(resolve:CODE_EDITOR)%');
197+
$framework->ide('%env(resolve:SYMFONY_IDE)%');
198198
};
199199
200+
.. versionadded:: 6.1
201+
202+
The environment variable `SYMFONY_IDE` was introduced in Symfony 6.1.
203+
It is read by default when `framework.ide` config is not set.
204+
200205
Another alternative is to set the ``xdebug.file_link_format`` option in your
201206
``php.ini`` configuration file. The format to use is the same as for the
202207
``framework.ide`` option, but without the need to escape the percent signs

0 commit comments

Comments
 (0)