Skip to content

Commit

Permalink
Fix build against latest Nette
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Apr 19, 2024
1 parent aa2682d commit 2212968
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/FileUploadControl/Fixtures/TestPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(?Nette\Http\IRequest $httpRequest = null, ?callabl
$primaryDependencies['httpResponse'] = $presenter->createHttpResponse();
$primaryDependencies['router'] = new SimpleRouter();
$primaryDependencies['templateFactory'] = $presenter->createTemplateFactory();
$primaryDependencies['presenterFactory'] = new Nette\Application\PresenterFactory();
$presenter->injectPrimary(...$primaryDependencies);

$presenter->setParent(null, 'Test');
Expand Down Expand Up @@ -95,7 +96,11 @@ private function createLatteFactory(): Nette\Bridges\ApplicationLatte\LatteFacto

public function create(): Latte\Engine
{
return new Latte\Engine();
$latte = new Latte\Engine();

$latte->addExtension(new Nette\Bridges\FormsLatte\FormsExtension());

return $latte;
}

};
Expand Down

0 comments on commit 2212968

Please sign in to comment.