Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #191 from ZF-Commons/2.1
Browse files Browse the repository at this point in the history
Prepare release for 2.1
  • Loading branch information
bakura10 committed Feb 6, 2014
2 parents da9ccd6 + 870dc07 commit 4581856
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Upgrade guide

## From v2.0 to v2.1

- [Potential BC] A potential BC have been introduced in v2.1 to respect interfaces of RBAC component more strictly.
However there is great chance that you have nothing to do. Now, ZfcRbac no longer cast permissions to string before
passing it to your "hasPermission" method in the Role entity. If you used to call `isGranted` using a string permission,
like this: `isGranted('myPermission')`, then you have nothing to do. However, if you are passing a `PermissionInterface`
object, you will now receive this object instead of a string. It's up to you to getting the name from your permission.

## From v1 to v2

Here are the major breaking changes from ZfcRbac 1 to ZfcRbac 2:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"php": ">=5.4",
"zendframework/zend-mvc": "~2.2",
"zendframework/zend-servicemanager": "~2.2",
"zfr/rbac": "~1.0"
"zfr/rbac": "~1.2"
},
"require-dev": {
"zendframework/zendframework": "~2.2",
Expand All @@ -35,8 +35,8 @@
"squizlabs/php_codesniffer": "1.4.*",
"satooshi/php-coveralls": "~0.6",
"doctrine/common": "~2.4",
"doctrine/doctrine-module": "~0.8@beta",
"doctrine/doctrine-orm-module": "~0.8@beta"
"doctrine/doctrine-module": "~0.8",
"doctrine/doctrine-orm-module": "~0.8"
},
"suggest": {
"zendframework/zend-developer-tools": "if you want to show information about the roles",
Expand Down

0 comments on commit 4581856

Please sign in to comment.