Nette\DI\CompilerExtension::beforeCompile PHP Метод

beforeCompile() публичный Метод

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.
public beforeCompile ( ) : void
Результат void
    public function beforeCompile()
    {
    }

Usage Example

Пример #1
0
 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