-
Notifications
You must be signed in to change notification settings - Fork 69
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
simplify the dynamic router #275
Comments
I was wondering what the initial idea behind splitting the |
the dynamic router is handling the matching of routes when you can't have the collection upfront (because it is dynamic). the provider knows how to load the route candidates (e.g. from phpcr or some relational database). |
I Contao CMS we use a lot of these features and would need to rewrite if they are gone. But I would also agree that we use most of them because they are there – and I was trying to do best practice to use them 😆 We do use a route enhancer that does not actually enhance the route, but it "enhances" our legacy system with the route information. This could very well be implemented through a request listener, the enhancer kind of has the advantage to not rely on the router listener priority and noone could slip between them. We also use route filters extensively. Not sure there's a particular reason not to do that filtering in the router provider, but the filters can be reused (we have multiple dynamic routers).
regarding this question, I can't think of anything that could be made simpler. Having the |
i created this issue based on https://twitter.com/alex_s_/status/1526845679292882945 by @alexander-schranz i have not formed a clear opinion one way or the other, but am looking for thoughts and inputs. if in the end we have a little implementation document that explains why we do things the way we do, and they stay the same, that would be a good outcome for me too. |
the dynamic router has grown quite complicated from its initial design. we should check if we can streamline things.
The text was updated successfully, but these errors were encountered: