-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Generalized Route::getTargetPresenter() #40
base: master
Are you sure you want to change the base?
Conversation
static? |
We may implement the function getTargetPresenters()
{
if ($this->cachedRoutes === NULL) $this->cachedRoutes = $this->buildCache();
return empty($this->cachedRoutes['*']) ? array_keys($this->cachedRoutes) : NULL;
} |
Sorry about previous comments. Without further change in RouteList it is major BC break for multiple presenters in single route? |
@mishak87 Sorry, I have no idea what you mean. Please rephrase. This feature should be entirely without BC break. |
Original: Change: Adds interface returning multiple routes and removes |
I still don't know what you are talking about. Are you suggesting something? Informing me of something? Are you stating facts? |
He means that you changed |
@dg Does this makes sense to you? Should I finish the implementation (e.g. write tests)? |
ping |
Even after more than one month I still think this is a great idea. Except for the interface name, that is terrible. cc @dg |
I'm not sure about the interface name, but I like the idea. 👍 |
I think that |
That would solve the ugly |
I would prefer to avoid BC break. This method can be in interface in v2.3 commented out and checked via method_exists. |
a962376
to
f813271
Compare
That seems reasonable. |
Typo in commit message: IRouter |
Yeah and it also does not have tests so we don't know whether it actually work. And I don't feel like writing them right now. |
… that returns array (inspired by #40)
… that returns array (inspired by #40)
Do you plan to merge this to 2.3? |
Yes, will you finish it? |
b7c910a
to
3f30cee
Compare
e3d05b3
to
929a242
Compare
426e735
to
c19ebdc
Compare
2b9da37
to
30d90f4
Compare
bf86204
to
c91f90a
Compare
57bd587
to
e908315
Compare
c5ecbda
to
ecb200c
Compare
Allow using this optimization for other
IRouter
implementations.Ideas for better names of anything are welcomed.