/** * @return Compiler */ protected function createCompiler() { $this->compiler = parent::createCompiler(); $this->compiler->addExtension('venne', new \Venne\Config\Extensions\VenneExtension())->addExtension('console', new \Venne\Config\Extensions\ConsoleExtension())->addExtension('extensions', new \Venne\Config\Extensions\ExtensionsExtension())->addExtension('proxy', new \Venne\Config\Extensions\ProxyExtension()); return $this->compiler; }
/** * @return Compiler */ protected function createCompiler() { $compiler = new Compiler(); $compiler->addExtension('php', new Extensions\PhpExtension())->addExtension('constants', new Extensions\ConstantsExtension())->addExtension('nette', new Extensions\NetteExtension()); return $compiler; }
/** * Creates the DIC compiler. * * @return \Nette\Config\Compiler */ protected function createCompiler() { $compiler = new Compiler(); $compiler->addExtension('config', new ConfigExtension($this->arguments)); $compiler->addExtension('apigen', new ApiGenExtension()); $compiler->addExtension('plugin', new PluginsExtension($this->createRobotLoader())); return $compiler; }