This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
[RFC] [3.x] Guards with Method Interception #244
Comments
I don't like annotations ! ;) |
It coulk make sense for controller guards, or service protections. But for route guards, i definitly prefer a config file. |
It's definately a feature for service protections :) |
aeneasr
changed the title
[RFC] [3.x] Annotations
[RFC] [3.x] Service protection with XML and Annotations
Jun 22, 2014
aeneasr
changed the title
[RFC] [3.x] Service protection with XML and Annotations
[RFC] [3.x] ServiceGuards: Method Interception
Jun 22, 2014
aeneasr
changed the title
[RFC] [3.x] ServiceGuards: Method Interception
[RFC] [3.x] AOP: Guards with Method Interception
Jun 22, 2014
aeneasr
changed the title
[RFC] [3.x] AOP: Guards with Method Interception
[RFC] [3.x] Guards with Method Interception
Jun 22, 2014
I have done some research and updated the RFC accordingly |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Service protection is still a pain. It needs a lot of boilerplate code (DI,
isGranted()
) and coupling is encouraged by requiring the dev to inject theAuthorizationService
. There is something called method interception which translates to a configurable way for protecting services and classes.Here are some examples how that could work:
Array
Annotations
XML
Java is doing this and there are some frameworks out there which provide that functionality, so go ahead and give it a read:
There are already some interceptor implementations for PHP:
What do you think? Your feedback is much appreciated!
The text was updated successfully, but these errors were encountered: