Skip to content

Commit b073443

Browse files
committed
Minor tweaks
1 parent 5c05f26 commit b073443

File tree

1 file changed

+4
-38
lines changed

1 file changed

+4
-38
lines changed

reference/configuration/framework.rst

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -160,47 +160,13 @@ doubling them to prevent Symfony from interpreting them as container parameters)
160160
};
161161
162162
Since every developer uses a different IDE, the recommended way to enable this
163-
feature is to configure it on a system level. First, you can set its value to
164-
some environment variable that stores the name of the IDE/editor:
165-
166-
.. configuration-block::
167-
168-
.. code-block:: yaml
169-
170-
# config/packages/framework.yaml
171-
framework:
172-
# the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.)
173-
ide: '%env(resolve:SYMFONY_IDE)%'
174-
175-
.. code-block:: xml
176-
177-
<!-- config/packages/framework.xml -->
178-
<?xml version="1.0" encoding="UTF-8" ?>
179-
<container xmlns="http://symfony.com/schema/dic/services"
180-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
181-
xmlns:framework="http://symfony.com/schema/dic/symfony"
182-
xsi:schemaLocation="http://symfony.com/schema/dic/services
183-
https://symfony.com/schema/dic/services/services-1.0.xsd
184-
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
185-
186-
<!-- the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.) -->
187-
<framework:config ide="%env(resolve:SYMFONY_IDE)%"/>
188-
</container>
189-
190-
.. code-block:: php
191-
192-
// config/packages/framework.php
193-
use Symfony\Config\FrameworkConfig;
194-
195-
return static function (FrameworkConfig $framework) {
196-
// the env var stores the IDE/editor name (e.g. 'phpstorm', 'vscode', etc.)
197-
$framework->ide('%env(resolve:SYMFONY_IDE)%');
198-
};
163+
feature is to configure it on a system level. First, you can define this option
164+
in the ``SYMFONY_IDE`` environment variable, which Symfony reads automatically
165+
when ``framework.ide`` config is not set.
199166

200167
.. versionadded:: 6.1
201168

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.
169+
``SYMFONY_IDE`` environment variable support was introduced in Symfony 6.1.
204170

205171
Another alternative is to set the ``xdebug.file_link_format`` option in your
206172
``php.ini`` configuration file. The format to use is the same as for the

0 commit comments

Comments
 (0)