src/Bridges/Nette/DI/LoadExtension.php
public function afterCompile(Nette\PhpGenerator\ClassType $class)
	{
		$initialize = $class->getMethod('initialize');
		$builder = $this->getContainerBuilder();

		if ($builder->parameters['debugMode'] && $builder->hasDefinition(self::TRACY_PANEL)) {
			$initialize->addBody($builder->formatPhp('?;', [
				new Nette\DI\Statement('@Tracy\Bar::addPanel', ['@' . self::TRACY_PANEL, self::TRACY_PANEL]),
			]));
		}
	}
public function afterCompile(Nette\PhpGenerator\ClassType $class)
	{
		$initialize = $class->getMethod('initialize');
		$builder = $this->getContainerBuilder();

		if ($builder->parameters['debugMode'] && $builder->hasDefinition(self::TRACY_PANEL)) {
			$initialize->addBody($builder->formatPhp('?;', [
				new Nette\DI\Statement('@Tracy\Bar::addPanel', ['@' . self::TRACY_PANEL, self::TRACY_PANEL]),
			]));
		}
	}
public function afterCompile ( Nette \ PhpGenerator \ ClassType $ class ) { $ initialize = $ class -> getMethod ( 'initialize' ) ; $ builder = $ this -> getContainerBuilder ( ) ; if ( $ builder -> parameters [ 'debugMode' ] && $ builder -> hasDefinition ( self :: TRACY_PANEL ) ) { $ initialize -> addBody ( $ builder -> formatPhp ( '?;' , [ new Nette \ DI \ Statement ( '@Tracy\Bar::addPanel' , [ '@' . self :: TRACY_PANEL , self :: TRACY_PANEL ] ) , ] ) ) ; } }
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

@param Nette\PhpGenerator\ClassType $class
Adjusts DI container compiled to PHP class . Intended to be overridden by descendant .