propel-bundle/Resources/views/Panel/configuration.html.twig

70 lines
1.8 KiB
Twig

<h2>Propel configuration</h2>
<table summary="Current Propel configuration">
<thead>
</thead>
<tbody>
<tr>
<th>Propel version</th>
<td>{{ propel_version }}</td>
</tr>
<tr>
<th>Default connection</th>
<td>{{ configuration.runtime.defaultConnection }}</td>
<tr>
<th>Logging</th>
<td>{{ logging ? 'enabled' : 'disabled' }}</td>
</tr>
</tbody>
</table>
<h2>Propel connections</h2>
<table summary="Current Propel connections">
<thead>
<tr>
<th>Connection name</th>
<th colspan="2" style="text-align: center;">Configuration parameters</th>
</tr>
</thead>
<tbody>
{% for name, config in configuration.database.connections %}
<tr>
<th rowspan="5" style="vertical-align: top;">
{{ name }}
</th>
<th>Adapter</th>
<td>{{ config.adapter }}</td>
</tr>
<tr>
<th>DSN</th>
<td>{{ config.dsn }}</td>
</tr>
<tr>
<th>Class</th>
<td>{{ config.classname }}</td>
</tr>
<tr>
<th>Options</th>
<td>
<ul>
{% for key, value in config.options %}
<li>{{ key }} : {{ value }}</li>
{% endfor %}
</ul>
</td>
</tr>
<tr>
<th>Attributes</th>
<td>
<ul>
{% for key, value in config.attributes %}
<li>{{ key }} : {{ value }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>