Skip to content

Commit a6493e0

Browse files
committed
[Framework] Env var SYMFONY_IDE to set framework.ide
1 parent 4d507de commit a6493e0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.1
5+
---
6+
7+
* Environment variable `SYMFONY_IDE` is read by default when `framework.ide` config is not set.
8+
49
6.0
510
---
611

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getConfigTreeBuilder(): TreeBuilder
8080
->info("Set true to enable support for the '_method' request parameter to determine the intended HTTP method on POST requests. Note: When using the HttpCache, you need to call the method in your front controller instead")
8181
->defaultTrue()
8282
->end()
83-
->scalarNode('ide')->defaultNull()->end()
83+
->scalarNode('ide')->defaultValue('%env(default::SYMFONY_IDE)%')->end()
8484
->booleanNode('test')->end()
8585
->scalarNode('default_locale')->defaultValue('en')->end()
8686
->booleanNode('set_locale_from_accept_language')

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ protected static function getBundleDefaultConfig()
368368
{
369369
return [
370370
'http_method_override' => true,
371-
'ide' => null,
371+
'ide' => '%env(default::SYMFONY_IDE)%',
372372
'default_locale' => 'en',
373373
'enabled_locales' => [],
374374
'set_locale_from_accept_language' => false,

0 commit comments

Comments
 (0)