2011-04-07 01:54:14 +02:00
|
|
|
<?php
|
|
|
|
|
2011-08-30 23:29:49 +02:00
|
|
|
/**
|
|
|
|
* This file is part of the PropelBundle package.
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* @license MIT License
|
|
|
|
*/
|
|
|
|
|
2011-04-07 01:54:14 +02:00
|
|
|
namespace Propel\PropelBundle\Controller;
|
|
|
|
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerAware;
|
|
|
|
|
|
|
|
use Propel\PropelBundle\DataCollector\PropelDataCollector;
|
|
|
|
|
2011-04-07 10:01:30 +02:00
|
|
|
/**
|
|
|
|
* PanelController is designed to display information in the Propel Panel.
|
|
|
|
*
|
|
|
|
* @author William DURAND <william.durand1@gmail.com>
|
|
|
|
*/
|
2011-04-07 01:54:14 +02:00
|
|
|
class PanelController extends ContainerAware
|
|
|
|
{
|
2011-04-07 10:01:30 +02:00
|
|
|
/**
|
|
|
|
* This method renders the global Propel configuration.
|
|
|
|
*
|
|
|
|
* @param PropelDataCollector $collector A PropelDataCollector collector
|
|
|
|
*/
|
2011-04-07 01:54:14 +02:00
|
|
|
public function configurationAction(PropelDataCollector $collector)
|
|
|
|
{
|
|
|
|
$templating = $this->container->get('templating');
|
|
|
|
|
|
|
|
return $templating->renderResponse(
|
|
|
|
'PropelBundle:Panel:configuration.html.twig',
|
|
|
|
array(
|
|
|
|
'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'),
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|