-
Notifications
You must be signed in to change notification settings - Fork 12
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
Authorisation Service #2
base: master
Are you sure you want to change the base?
Conversation
Separated Basic and Extended Authorisation Service Interfaces
…thorisation-service
proposed/authorisation-service.md
Outdated
* | ||
* @return UserInterface[] | ||
*/ | ||
public function getUsers($action, $classOrObject = null): array; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be getActors imho - the same as is in description - user implies humans
proposed/authorisation-service.md
Outdated
* | ||
* @return object[] | ||
*/ | ||
public function getObjects($roleOrUser, $action, $class = null): array; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this one should be something more abstract - target or entity as in your description
proposed/authorisation-service.md
Outdated
* | ||
* @param UserInterface $user The user that will take action | ||
* @param string $action The action to be taken | ||
* @param string|object $classOrObject The class or object to act on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename parameters in accordance with description https://github.com/joomla-x/joomla-standards/pull/2/files#diff-b75c3483f869c0812ec55be2719fa3c3R28
I basically agree with proposed RCF, but all methods and variables should be named in abstract way not bound to specific implementations, as it is done in description https://github.com/joomla-x/joomla-standards/pull/2/files#diff-b75c3483f869c0812ec55be2719fa3c3R28 |
@klas Thank you for your feedback, made according changes. |
# Conflicts: # README.md # bylaws/workflow.md # index.md
Proposal for a (generic) interface for Authorisation Services.