src/Bridges/Nette/DI/LoadExtension.php
protected function registerDebugger()
	{
		if ($this->config['debugger']) {
			$builder = $this->getContainerBuilder();
			if (!$builder->hasDefinition(self::TRACY_PANEL)) {
				$builder->addDefinition(self::TRACY_PANEL)->setClass(LoadPanel::class);
			}
			$builder->getDefinition(self::TRACY_PANEL)
				->addSetup('addCompiler', [$this->name, "@sw2load.compiler.{$this->name}"]);
		}
	}
protected function registerDebugger()
	{
		if ($this->config['debugger']) {
			$builder = $this->getContainerBuilder();
			if (!$builder->hasDefinition(self::TRACY_PANEL)) {
				$builder->addDefinition(self::TRACY_PANEL)->setClass(LoadPanel::class);
			}
			$builder->getDefinition(self::TRACY_PANEL)
				->addSetup('addCompiler', [$this->name, "@sw2load.compiler.{$this->name}"]);
		}
	}
protected function registerDebugger ( ) { if ( $ this -> config [ 'debugger' ] ) { $ builder = $ this -> getContainerBuilder ( ) ; if ( ! $ builder -> hasDefinition ( self :: TRACY_PANEL ) ) { $ builder -> addDefinition ( self :: TRACY_PANEL ) -> setClass ( LoadPanel :: class ) ; } $ builder -> getDefinition ( self :: TRACY_PANEL ) -> addSetup ( 'addCompiler' , [ $ this -> name , "@sw2load.compiler.{$this->name}" ] ) ; } }
Add debug panel, if needed.
Add debug panel if needed .