Nette\DI\CompilerExtension::beforeCompile PHP Method

beforeCompile() public method

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
public beforeCompile ( ) : void
return void
    public function beforeCompile()
    {
    }

Usage Example

コード例 #1
0
ファイル: Extension.php プロジェクト: ytnuk/translation
 public function beforeCompile()
 {
     parent::beforeCompile();
     $builder = $this->getContainerBuilder();
     $translator = $builder->getDefinition($builder->getByType(Nette\Localization\ITranslator::class));
     $translator->setClass(Translator::class, $translator->getFactory()->arguments);
 }
All Usage Examples Of Nette\DI\CompilerExtension::beforeCompile