Skip to content

Commit a995698

Browse files
committed
Expose $app variable to templates
1 parent e84021b commit a995698

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

formwork/src/Templates/TemplateFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function make(string $name): Template
2929
'path' => $path,
3030
'methods' => [],
3131
'vars' => [
32+
'app' => $this->app,
3233
'router' => $this->app->router(),
3334
'site' => $this->app->site(),
3435
'csrfToken' => $this->app->getService(CsrfToken::class),

0 commit comments

Comments
 (0)