Skip to content

Commit 1c66c16

Browse files
committed
Merge pull request propelorm#402 from niels-nijens/1.6-fix-profiler
Fixes for the Symfony profiler integration
2 parents 59e84ba + 69a0e9e commit 1c66c16

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Controller/PanelController.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@
99
*/
1010
namespace Propel\Bundle\PropelBundle\Controller;
1111

12-
use Symfony\Component\DependencyInjection\ContainerAware;
12+
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
13+
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
1314
use Symfony\Component\HttpFoundation\Response;
1415

1516
/**
1617
* PanelController is designed to display information in the Propel Panel.
1718
*
1819
* @author William DURAND <william.durand1@gmail.com>
1920
*/
20-
class PanelController extends ContainerAware
21+
class PanelController implements ContainerAwareInterface
2122
{
23+
use ContainerAwareTrait;
24+
2225
/**
2326
* This method renders the global Propel configuration.
2427
*/

Resources/views/Collector/propel.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@
7979
<code>{{ query.sql|format_sql }}</code>
8080
{% if app.request.query.has('query') and app.request.query.get('query') == i %}
8181
<div class="SQLExplain">
82-
{% render controller('PropelBundle:Panel:explain', {
82+
{{ render(controller('PropelBundle:Panel:explain', {
8383
'token': token,
8484
'panel': 'propel',
8585
'query': app.request.query.get('query'),
8686
'connection': app.request.query.get('connection')
87-
}) %}
87+
})) }}
8888
</div>
8989
{% endif %}
9090
<div class="SQLInfo">
@@ -101,5 +101,5 @@
101101
</tbody>
102102
</table>
103103

104-
{% render controller('PropelBundle:Panel:configuration') %}
104+
{{ render(controller('PropelBundle:Panel:configuration')) }}
105105
{% endblock %}

0 commit comments

Comments
 (0)