Skip to content

Commit 7b803d2

Browse files
author
Amrouche Hamza
committed
[Profiler][Translation] Logging false by default and desactivated when using the profiler
1 parent a522e04 commit 7b803d2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ private function addTranslatorSection(ArrayNodeDefinition $rootNode)
622622
->prototype('scalar')->end()
623623
->defaultValue(array('en'))
624624
->end()
625-
->booleanNode('logging')->defaultValue($this->debug)->end()
625+
->booleanNode('logging')->defaultValue(false)->end()
626626
->scalarNode('formatter')->defaultValue('translator.formatter.default')->end()
627627
->arrayNode('paths')
628628
->prototype('scalar')->end()

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/LoggingTranslatorPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testProcess()
3838
->method('getDefinition')
3939
->will($this->returnValue($definition));
4040

41-
$container->expects($this->once())
41+
$container->expects($this->atLeastOnce())
4242
->method('hasParameter')
4343
->with('translator.logging')
4444
->will($this->returnValue(true));

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected static function getBundleDefaultConfig()
152152
'translator' => array(
153153
'enabled' => !class_exists(FullStack::class),
154154
'fallbacks' => array('en'),
155-
'logging' => true,
155+
'logging' => false,
156156
'formatter' => 'translator.formatter.default',
157157
'paths' => array(),
158158
),

0 commit comments

Comments
 (0)