You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DependencyInjection/Configuration.php
+28-8Lines changed: 28 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,29 @@ public function getConfigTreeBuilder()
69
69
return $v;
70
70
})
71
71
->end()
72
+
->beforeNormalization()
73
+
->ifTrue(function ($v) {
74
+
@trigger_error('"httplug.toolbar" config is deprecated since version 1.3 and will be removed in 2.0. Use "httplug.profiling" instead.', E_USER_DEPRECATED);
throw new InvalidConfigurationException('Can\'t configure both "toolbar" and "profiling" section. The "toolbar" config is deprecated as of version 1.3.0, please only use "profiling".');
81
+
}
82
+
83
+
if (array_key_exists('enabled', $v['toolbar']) && 'auto' === $v['toolbar']['enabled']) {
84
+
@trigger_error('"auto" value in "httplug.toolbar" config is deprecated since version 1.3 and will be removed in 2.0. Use a boolean value instead.', E_USER_DEPRECATED);
85
+
$v['toolbar']['enabled'] = $this->debug;
86
+
}
87
+
88
+
$v['profiling'] = $v['toolbar'];
89
+
90
+
unset($v['toolbar']);
91
+
92
+
return $v;
93
+
})
94
+
->end()
72
95
->children()
73
96
->arrayNode('main_alias')
74
97
->addDefaultsIfNotSet()
@@ -90,17 +113,14 @@ public function getConfigTreeBuilder()
* @expectedExceptionMessage Can't configure both "toolbar" and "profiling" section. The "toolbar" config is deprecated as of version 1.3.0, please only use "profiling".
0 commit comments