Skip to content

Commit

Permalink
fix(MOS-1414): Extended PanelController from AbstractController.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPeters-NL committed Mar 11, 2024
1 parent 76a5c36 commit 15f80e3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Controller/PanelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace Propel\Bundle\PropelBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\HttpFoundation\Response;
Expand All @@ -19,7 +20,7 @@
*
* @author William DURAND <[email protected]>
*/
class PanelController implements ContainerAwareInterface
class PanelController extends AbstractController implements ContainerAwareInterface
{
use ContainerAwareTrait;

Expand All @@ -29,15 +30,15 @@ class PanelController implements ContainerAwareInterface
public function configurationAction()
{
return new Response(
$this->container->get('twig')->render(
$this->render(
'@Propel/Panel/configuration.html.twig',
[
'propel_version' => \Propel::VERSION,
'configuration' => $this->container->get('propel.configuration')->getParameters(),
'default_connection' => $this->container->getParameter('propel.dbal.default_connection'),
'logging' => $this->container->getParameter('propel.logging'),
'path' => $this->container->getParameter('propel.path'),
'phing_path' => $this->container->getParameter('propel.phing_path'),
'default_connection' => $this->getParameter('propel.dbal.default_connection'),
'logging' => $this->getParameter('propel.logging'),
'path' => $this->getParameter('propel.path'),
'phing_path' => $this->getParameter('propel.phing_path'),
]
)
);
Expand Down Expand Up @@ -78,7 +79,7 @@ public function explainAction($token, $connection, $query)
}

return new Response(
$this->container->get('twig')->render(
$this->render(
'@Propel/Panel/explain.html.twig',
[
'data' => $results,
Expand Down

0 comments on commit 15f80e3

Please sign in to comment.