Beispiel #1
0
 /**
  * @param DebugBar|null $debugBar
  * @param Config|null $config
  * @return $this
  */
 public function addConfig(DebugBar $debugBar = null, Config $config = null)
 {
     if (null === $debugBar) {
         return $this;
     }
     $debugBar->addCollector(new \DebugBar\DataCollector\ConfigCollector($config->all()));
     return $this;
 }