This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Refactor of internal role hierarchy model + changes for 3.0.0 #34
Merged
weierophinney
merged 35 commits into
zendframework:develop
from
ezimuel:feature/release-3.0.0
Mar 5, 2018
Merged
Changes from 14 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c10ad55
Updated composer for release 2.6.0
ezimuel 1f8a414
Updated CHANGELOG
ezimuel ad2ca66
Refactoring RBAC for version 3.0.0 with BC breaks
ezimuel 238f7e5
Updated CHANGELOG
ezimuel 4768f64
Updated README
ezimuel 725a782
Fixing grammar
ezimuel a256e3b
Merge branch 'develop' into feature/release-3.0.0
ezimuel 4a5b6e6
Requiring PHP 7.1+
ezimuel 0a507b4
Fixed MERGE conflict
ezimuel a5d84cd
Fixed CHANGELOG
ezimuel ae79491
Fixed composer JSON format
ezimuel 8c5bb1c
Fixed CallbackAssertion using AssertionInterface
ezimuel 487b847
Included feedbacks from #34 + removed fluent interface + improved cod…
ezimuel b8bf7ea
Improving code coverage
ezimuel c49aa62
Updated with latest comments in #34
ezimuel 2f528dc
Consistent capitalization with acronym
weierophinney 3ac0f94
Corrects links in README
weierophinney c2c47ca
Rephrases 3.0.0 entries to refer to patches
weierophinney 0e3c8c0
Fixes example to match updated AssertionInterface definition
weierophinney 5c3c711
Consistent casing when presenting an acronym
weierophinney 49ec38e
s/children/child/
weierophinney 6f44772
Rephrase description to reflect argument order.
weierophinney 26fc89d
Extend package-specific RuntimeException
weierophinney b9098a8
Remove redundant docblock annotations
weierophinney 2e8430f
Make CallbackAssertion type-safe
weierophinney 0f792b2
Do not wrap if line is not over length limit
weierophinney 125f3aa
Do not wrap line if it does not exceed line limit
weierophinney e0ced4c
Consistency updates for Rbac class
weierophinney def5290
Fix method docblocks
weierophinney b1c91bb
Added migation guide + removed optionals in AssertionInterface
ezimuel 6d934ce
Fixes assert() signature in CHANGELOG entry
weierophinney ee968a6
Fixes grammar of entry detailing circular reference fixes
weierophinney 23275ec
Completes migration notes
weierophinney 7a0dbf8
Added backslash for pipe in docs
ezimuel 60bf337
Merge remote-tracking branch 'origin/feature/release-3.0.0' into feat…
ezimuel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"name": "zendframework/zend-permissions-rbac", | ||
"description": "provides a role-based access control management", | ||
"description": "Provides a role-based access control management", | ||
"license": "BSD-3-Clause", | ||
"keywords": [ | ||
"zf2", | ||
"Rbac" | ||
"zendframework", | ||
"zend-permssions-rbac", | ||
"rbac", | ||
"authorization" | ||
], | ||
"homepage": "https://github.com/zendframework/zend-permissions-rbac", | ||
"autoload": { | ||
|
@@ -13,14 +15,14 @@ | |
} | ||
}, | ||
"require": { | ||
"php": "^5.6 || ^7.0" | ||
"php": "^7.1" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "2.6-dev", | ||
"dev-develop": "2.7-dev" | ||
"dev-master": "3.0-dev", | ||
"dev-develop": "3.1-dev" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't change these until the develop branch is merged to master (i.e., right before the 3.0 release). When you do, use the format |
||
} | ||
}, | ||
"autoload-dev": { | ||
|
@@ -29,7 +31,7 @@ | |
} | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.7.15|| ^6.2.1", | ||
"phpunit/phpunit": "^7.0.1", | ||
"zendframework/zend-coding-standard": "~1.0.0" | ||
}, | ||
"scripts": { | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is the permission more likely than the role to be passed? I would have assumed this would be in the following order:
For that matter: are the permission and role arguments actually optional? Will there ever be a case where they are not provided?
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.
@weierophinney I added
$role
and$permission
as optional parameters because in this way we can limit BC breaks from the previous implementation. The actual interface is: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.
@weierophinney I changed the order of params, using the follows: