Aspect oriented programming with aliases. #39952
Unanswered
WalterWoshid
asked this question in
Ideas
Replies: 1 comment
-
I think that this I how it should work, considering if Controller is made from a container. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Following situation:
You've got a controller like this:
and you'd like to create an alias in the service provider to override this class like that:
But what if you want to keep most of the functionality of the
IndexController
from theDifferentController
like this:Sadly the code above does not work, because apparently it's a circular logic, but wouldn't it be awesome to have such a functionality? This would technically allow aspect oriented programming. Please correct me if I'm wrong.
Beta Was this translation helpful? Give feedback.
All reactions