Removed default connection name (useless information)
This commit is contained in:
parent
8ae2b73742
commit
99721f7443
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
{% set text %}
|
||||
Propel
|
||||
|
|
||||
<span style="color: #759e1a">{{ collector.connectionName }}</span>
|
||||
|
|
||||
<span class="count">
|
||||
<span>{{ collector.querycount }}</span>
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue