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

Rethink the way the error handler works #2612

Merged
merged 4 commits into from
Oct 14, 2024
Merged

Conversation

Tofandel
Copy link
Contributor

@Tofandel Tofandel commented Jun 13, 2024

Fixes #2607

We can use the user provided handler and simply add render cases via methods, so we don't need to provide our own exception handler, which will alleviate the need for more configuration/setup when installing twill

I also optimized the provider to have all the config in one place and not have it run if the config is already cached

@Tofandel Tofandel force-pushed the fix/error-handler branch 3 times, most recently from b41b9c4 to c62b22f Compare June 13, 2024 21:42
@ifox
Copy link
Member

ifox commented Jun 13, 2024

This is great @Tofandel thank you. The custom exception handler has definitely been a source of issues and this approach is so much better.

@Tofandel Tofandel force-pushed the fix/error-handler branch from c62b22f to f1041d1 Compare June 13, 2024 22:11
@Tofandel Tofandel force-pushed the fix/error-handler branch from df84398 to d67ae26 Compare July 2, 2024 20:00
@Tofandel Tofandel force-pushed the fix/error-handler branch from d67ae26 to f76d55f Compare July 2, 2024 20:04
@ifox ifox merged commit 6849704 into area17:3.x Oct 14, 2024
8 checks passed
ifox added a commit that referenced this pull request Oct 14, 2024
With the default path set to `admin`, `/adminsomething`, eg. `/administration` would trigger the Twill 404 error instead of the frontend 404 due to the start of the path matching.
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.

The exception handler is overriden if calling $model->getFullUrl() on the frontend
2 participants