forked from ZF-Commons/zfc-rbac
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ZF-Commons#256 from ZF-Commons/move-permission-int…
…erface [3.0] Move permission interface
- Loading branch information
Showing
7 changed files
with
17 additions
and
13 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,17 +18,21 @@ | |
|
||
namespace ZfcRbac\Permission; | ||
|
||
use Rbac\Permission\PermissionInterface as BasePermissionInterface; | ||
|
||
/** | ||
* Interface that permissions must implement to be used with the AuthorizationService | ||
* | ||
* Please note that currently the interface extends the one from RBAC, but starting in ZF3, the | ||
* permission will be removed from RBAC component and moved here completely | ||
* | ||
* @author Michaël Gallego <[email protected]> | ||
* @licence MIT | ||
*/ | ||
interface PermissionInterface extends BasePermissionInterface | ||
interface PermissionInterface | ||
{ | ||
/** | ||
* Get the permission name | ||
* | ||
* You really must return the name of the permission as internally, the casting to string is used | ||
* as an optimization to avoid type checkings | ||
* | ||
* @return string | ||
*/ | ||
public function __toString(); | ||
} |
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