merged branch fabpot/optional-kernel (PR #6465)
This PR was merged into the master branch.
Commits
-------
5e359d3
made the kernel optional in all data collectors
Discussion
----------
made the kernel optional in all data collectors
This commit is contained in:
commit
382e98484b
@ -18,7 +18,7 @@
|
|||||||
<services>
|
<services>
|
||||||
<service id="data_collector.config" class="%data_collector.config.class%" public="false">
|
<service id="data_collector.config" class="%data_collector.config.class%" public="false">
|
||||||
<tag name="data_collector" template="WebProfilerBundle:Collector:config" id="config" priority="255" />
|
<tag name="data_collector" template="WebProfilerBundle:Collector:config" id="config" priority="255" />
|
||||||
<call method="setKernel"><argument type="service" id="kernel" /></call>
|
<call method="setKernel"><argument type="service" id="kernel" on-invalid="ignore" /></call>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="data_collector.request" class="%data_collector.request.class%">
|
<service id="data_collector.request" class="%data_collector.request.class%">
|
||||||
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
<service id="data_collector.time" class="%data_collector.time.class%" public="false">
|
<service id="data_collector.time" class="%data_collector.time.class%" public="false">
|
||||||
<tag name="data_collector" template="WebProfilerBundle:Collector:time" id="time" priority="255" />
|
<tag name="data_collector" template="WebProfilerBundle:Collector:time" id="time" priority="255" />
|
||||||
<argument type="service" id="kernel" />
|
<argument type="service" id="kernel" on-invalid="ignore" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="data_collector.memory" class="%data_collector.memory.class%" public="false">
|
<service id="data_collector.memory" class="%data_collector.memory.class%" public="false">
|
||||||
|
@ -31,7 +31,7 @@ class ConfigDataCollector extends DataCollector
|
|||||||
*
|
*
|
||||||
* @param KernelInterface $kernel A KernelInterface instance
|
* @param KernelInterface $kernel A KernelInterface instance
|
||||||
*/
|
*/
|
||||||
public function setKernel(KernelInterface $kernel)
|
public function setKernel(KernelInterface $kernel = null)
|
||||||
{
|
{
|
||||||
$this->kernel = $kernel;
|
$this->kernel = $kernel;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user