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 compatibility with nette/application 3.2.3 #12

Merged
merged 9 commits into from
May 7, 2024
Merged

Fix compatibility with nette/application 3.2.3 #12

merged 9 commits into from
May 7, 2024

Conversation

jtojnar
Copy link
Collaborator

@jtojnar jtojnar commented May 7, 2024

nette/application@850ab85 moved link generation to a new LinkGenerator class that must be instantiated or creating links will fail:

Unable to create link to other presenter, service PresenterFactory or Router has not been set.

In order for LinkGenerator to be instantiated, we need to pass a IPresenterFactory when instantiating a Presenter.
Let’s make our PresenterFactory trivially implement the interface so that it can be used.

Also apply some cleanups.

jtojnar added 9 commits May 8, 2024 00:06
The old name was super confusing.
To be enforced in the next commit.
nette/application@850ab85
moved link generation to a new LinkGenerator class that must be instantiated or creating links will fail:

    Unable to create link to other presenter, service PresenterFactory or Router has not been set.

In order for LinkGenerator to be instantiated, we need to pass a IPresenterFactory when instantiating a Presenter.
Let’s make our PresenterFactory trivially implement the interface so that it can be used.
@jtojnar jtojnar merged commit a84fbb4 into master May 7, 2024
8 checks passed
@jtojnar jtojnar deleted the napp323 branch May 7, 2024 23:32
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