File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Bundle/WebProfilerBundle/Resources/views/Collector
Component/Message/Handler Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 52
52
{% set color_code = ' normal' %}
53
53
{% set message_count = 0 %}
54
54
{% set icon %}
55
- {% if profiler_markup_version == 1 %}
56
- {{ include (' @WebProfiler/Icon/messages.svg' , { height : 28 , color : ' #3F3F3F' }) }}
57
- <span class =" sf-toolbar-status sf-toolbar-status-{{ color_code }}" >{{ message_count }}</span >
58
- {% else %}
59
- {{ include (' @WebProfiler/Icon/messages.svg' ) }}
60
- <span class =" sf-toolbar-value" >{{ message_count }}</span >
61
- {% endif %}
55
+ {{ include (' @WebProfiler/Icon/messages.svg' ) }}
56
+ <span class =" sf-toolbar-value" >{{ message_count }}</span >
62
57
{% endset %}
63
58
64
59
{{ include (' @WebProfiler/Profiler/toolbar_item.html.twig' , { link : ' messages' , status : color_code }) }}
Original file line number Diff line number Diff line change @@ -37,8 +37,12 @@ public function __construct(array $handlers)
37
37
38
38
public function __invoke ($ message )
39
39
{
40
- return array_map (function ($ handler ) use ($ message ) {
41
- return $ handler ($ message );
42
- }, $ this ->handlers );
40
+ $ results = [];
41
+
42
+ foreach ($ this ->handlers as $ handler ) {
43
+ $ results [] = $ handler ($ message );
44
+ }
45
+
46
+ return $ results ;
43
47
}
44
48
}
You can’t perform that action at this time.
0 commit comments