*/
-class PanelController extends ContainerAware
+class PanelController implements ContainerAwareInterface
{
+ use ContainerAwareTrait;
+
/**
* This method renders the global Propel configuration.
*/
@@ -45,7 +48,7 @@ class PanelController extends ContainerAware
* @param string $connection The connection name
* @param integer $query
*
- * @return Symfony\Component\HttpFoundation\Response A Response instance
+ * @return Response A Response instance
*/
public function explainAction($token, $connection, $query)
{
diff --git a/Resources/views/Collector/propel.html.twig b/Resources/views/Collector/propel.html.twig
index d261e14..d824f42 100644
--- a/Resources/views/Collector/propel.html.twig
+++ b/Resources/views/Collector/propel.html.twig
@@ -115,12 +115,12 @@
{{ query.sql|format_sql|raw }}
{% if app.request.query.has('query') and app.request.query.get('query') == i %}
- {% render controller('PropelBundle:Panel:explain', {
+ {{ render(controller('PropelBundle:Panel:explain', {
'token': token,
'panel': 'propel',
'query': app.request.query.get('query'),
'connection': app.request.query.get('connection')
- }) %}
+ })) }}
{% endif %}
@@ -149,5 +149,5 @@
- {% render controller('PropelBundle:Panel:configuration') %}
+ {{ render(controller('PropelBundle:Panel:configuration')) }}
{% endblock %}
diff --git a/composer.json b/composer.json
index e7553a3..66416d3 100644
--- a/composer.json
+++ b/composer.json
@@ -8,19 +8,16 @@
"name": "William Durand",
"email": "william.durand1@gmail.com"
}],
-
- "autoload": {
- "psr-4": { "Propel\\Bundle\\PropelBundle\\": "" },
- "exclude-from-classmap": [ "Tests/" ]
- },
-
"require": {
- "propel/propel": "dev-master",
- "symfony/symfony": "^2.8|^3.0"
+ "symfony/symfony": ">=2.5",
+ "propel/propel": "2.*@dev"
},
"require-dev": {
- "phpunit/phpunit": "^4.8.21|^5.0.10",
- "sensio/framework-extra-bundle": "^3.0.2",
- "fzaninotto/faker": "^1.5"
+ "sensio/framework-extra-bundle": "~3.0",
+ "phpunit/phpunit": "~4.0",
+ "fzaninotto/faker": "~1.1"
+ },
+ "autoload": {
+ "psr-4": { "Propel\\PropelBundle\\": "" }
}
}