Removed default connection name (useless information)

This commit is contained in:
William DURAND 2011-09-15 18:48:38 +02:00
parent 8ae2b73742
commit 99721f7443
3 changed files with 1 additions and 23 deletions

View file

@ -27,12 +27,6 @@ class PropelDataCollector extends DataCollector
* @var Propel\PropelBundle\Logger\PropelLogger
*/
private $logger;
/**
* Connection name
*
* @var string
*/
private $connectionName;
/**
* Propel configuration
*
@ -44,12 +38,10 @@ class PropelDataCollector extends DataCollector
* Constructor
*
* @param \Propel\PropelBundle\Logger\PropelLogger $logger A PropelLogger
* @param string $connectionName A connection name
*/
public function __construct(\Propel\PropelBundle\Logger\PropelLogger $logger, $connectionName, \PropelConfiguration $propelConfiguration)
public function __construct(\Propel\PropelBundle\Logger\PropelLogger $logger, \PropelConfiguration $propelConfiguration)
{
$this->logger = $logger;
$this->connectionName = $connectionName;
$this->propelConfiguration = $propelConfiguration;
}
@ -62,7 +54,6 @@ class PropelDataCollector extends DataCollector
$this->data = array(
'queries' => $this->buildQueries(),
'querycount' => $this->countQueries(),
'connectionName' => $this->connectionName,
);
}
@ -133,14 +124,4 @@ class PropelDataCollector extends DataCollector
{
return $this->data['querycount'];
}
/**
* Returns the connection name.
*
* @return string The connection name
*/
public function getConnectionName()
{
return $this->data['connectionName'];
}
}

View file

@ -28,7 +28,6 @@
<service id="propel.data_collector" class="%propel.data_collector.class%" public="false">
<tag name="data_collector" template="PropelBundle:Collector:propel" id="propel" />
<argument type="service" id="propel.logger" />
<argument>%propel.dbal.default_connection%</argument>
<argument type="service" id="propel.configuration" />
</service>

View file

@ -8,8 +8,6 @@
{% set text %}
Propel
|
<span style="color: #759e1a">{{ collector.connectionName }}</span>
|
<span class="count">
<span>{{ collector.querycount }}</span>
</span>