/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/bake/src/Utility
NameSizeModeActions
Model/-0755rm
CommonOptionsTrait.php37840644editdlrm
Process.php20700644editdlrm
SubsetSchemaCollection.php20320644editdlrm
TableScanner.php28760644editdlrm
TemplateRenderer.php27980644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/bake/src/Utility/TemplateRenderer.php (2798B)
theme = $theme; } /** * Get view instance * * @return \Cake\View\View * @triggers Bake.initialize $view */ public function getView(): View { if ($this->view) { return $this->view; } $this->viewBuilder() ->addhelpers(['Bake.Bake', 'Bake.DocBlock']) ->setTheme($this->theme); $view = $this->createView(BakeView::class); $event = new Event('Bake.initialize', $view); EventManager::instance()->dispatch($event); /** @var \Bake\View\BakeView $view */ $view = $event->getSubject(); $this->view = $view; return $this->view; } /** * Runs the template * * @param string $template bake template to render * @param array|null $vars Additional vars to set to template scope. * @return string contents of generated code template */ public function generate(string $template, ?array $vars = null): string { if ($vars !== null) { $this->set($vars); } $view = $this->getView(); try { return $view->render($template); } catch (MissingTemplateException $e) { $message = sprintf('No bake template found for "%s" skipping file generation.', $template); throw new MissingTemplateException($message); } } }