Skip to content

Commit 864fe84

Browse files
committed
Fixes Twig deprecation warning. (cherry picked from commit e22fe0b)
1 parent e001085 commit 864fe84

1 file changed

Lines changed: 37 additions & 39 deletions

File tree

Resources/views/Panel/configuration.html.twig

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -36,44 +36,42 @@
3636
</tr>
3737
</thead>
3838
<tbody>
39-
{% for name, config in configuration.datasources %}
40-
{% if config is iterable %}
41-
<tr>
42-
<th rowspan="5" style="vertical-align: top;">
43-
{{ name }}
44-
</th>
45-
<th>Adapter</th>
46-
<td>{{ config.adapter }}</td>
47-
</tr>
48-
<tr>
49-
<th>DSN</th>
50-
<td>{{ config.connection.dsn }}</td>
51-
</tr>
52-
<tr>
53-
<th>Class</th>
54-
<td>{{ config.connection.classname }}</td>
55-
</tr>
56-
<tr>
57-
<th>Options</th>
58-
<td>
59-
<ul>
60-
{% for key, value in config.connection.options %}
61-
<li>{{ key }} : {{ value }}</li>
62-
{% endfor %}
63-
</ul>
64-
</td>
65-
</tr>
66-
<tr>
67-
<th>Attributes</th>
68-
<td>
69-
<ul>
70-
{% for key, value in config.connection.attributes %}
71-
<li>{{ key }} : {{ value }}</li>
72-
{% endfor %}
73-
</ul>
74-
</td>
75-
</tr>
76-
{% endif %}
77-
{% endfor %}
39+
{% for name, config in configuration.datasources %}{% if config is iterable %}
40+
<tr>
41+
<th rowspan="5" style="vertical-align: top;">
42+
{{ name }}
43+
</th>
44+
<th>Adapter</th>
45+
<td>{{ config.adapter }}</td>
46+
</tr>
47+
<tr>
48+
<th>DSN</th>
49+
<td>{{ config.connection.dsn }}</td>
50+
</tr>
51+
<tr>
52+
<th>Class</th>
53+
<td>{{ config.connection.classname }}</td>
54+
</tr>
55+
<tr>
56+
<th>Options</th>
57+
<td>
58+
<ul>
59+
{% for key, value in config.connection.options %}
60+
<li>{{ key }} : {{ value }}</li>
61+
{% endfor %}
62+
</ul>
63+
</td>
64+
</tr>
65+
<tr>
66+
<th>Attributes</th>
67+
<td>
68+
<ul>
69+
{% for key, value in config.connection.attributes %}
70+
<li>{{ key }} : {{ value }}</li>
71+
{% endfor %}
72+
</ul>
73+
</td>
74+
</tr>
75+
{% endif %}{% endfor %}
7876
</tbody>
7977
</table>

0 commit comments

Comments
 (0)