Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix form macro with nette/application ≥ 3.2.2 #13

Merged
merged 2 commits into from
May 14, 2024
Merged

Fix form macro with nette/application ≥ 3.2.2 #13

merged 2 commits into from
May 14, 2024

Conversation

jtojnar
Copy link
Collaborator

@jtojnar jtojnar commented May 14, 2024

Since nette/application@1aba9da (a side effect of nette/application#320), TemplateFactory no longer registers the FormsExtension, which caused the form macro to be missing.

Let’s re-add it in our LatteFactory.

The CacheExtension, which was also removed, is not necessary or even detrimental for tests so we are going to ignore it.

With older nette/application versions, the FormsExtension will be added a second time so the macros from the first registration will be shadowed but that does not matter since it is the same extension.

jtojnar added 2 commits May 14, 2024 03:07
The form is created using the `control` macro and
we are going to add one using the `form` macro.
Since nette/application@1aba9da,
`TemplateFactory` no longer registers the `FormsExtension`,
which caused the `form` macro to be missing.

Let’s re-add it in our `LatteFactory`.

The `CacheExtension`, which was also removed, is not necessary or
even detrimental for tests so we are going to ignore it.

With older `nette/application` versions, the `FormsExtension`
will be added a second time so the macros from the first
registration will be shadowed but that does not matter since
it is the same extension.
@jtojnar jtojnar merged commit e236685 into master May 14, 2024
8 checks passed
@jtojnar jtojnar deleted the forms322 branch May 14, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant