Skip to content
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

Update dependency zendframework/zend-permissions-rbac to v3 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Sep 7, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
zendframework/zend-permissions-rbac require major ^2.6 -> ^3.0

Release Notes

zendframework/zend-permissions-rbac

v3.0.2

Compare Source

Added
  • #​43 adds support for PHP 7.3.
Changed
  • Nothing.
Deprecated
  • Nothing.
Removed
  • Nothing.
Fixed
  • Nothing.

v3.0.1

Compare Source

Added
  • Nothing.
Changed
  • #​37 changes
    the return type hints of RoleInterface::getChildren() and RoleInterface::getParents()
    from array to iterable. This is not a BC break thanks to Iterable Type Variance
Deprecated
  • Nothing.
Removed
  • Nothing.
Fixed
  • #​39 fixes
    Role::getPermissions() to return all the permissions, if more than one.

v3.0.0

Compare Source

Added
  • #​34 adds
    checks for circular references in the role hierarchy when using the
    Role::addChild() and Role::addParent() methods.

  • #​35 adds
    the method Role::getPermissions(bool $children = true) for retrieving all
    permissions to the related role, including all child permissions when
    $children is boolean true.

  • #​35 adds
    the method Rbac::getRoles(), which returns all roles registered with the
    instance as a flat array of instances.

Changed
  • #​34 updates
    the Role::addChild(RoleInterface $child) method to accept only a RoleInterface parameter;
    strings are no longer accepted.

  • #​34 updates
    the Zend\Permissions\Rbac\AssertionInterface, adding two parameters to the
    assert() definition and defining a return type, so that it now reads as
    follows:

    public function assert(
        Rbac $rbac,
        RoleInterface $role,
        string $permission
    ) : bool
Deprecated
  • Nothing.
Removed
  • #​34 removes
    support for PHP versions prior to 7.1.

  • #​34 removes
    the AbstractIterator
    class. The role hierarchy no longer relies on a RecursiveIterator.

  • #​34 removes
    the AbstractRole
    class. All its functions have been merged to the Zend\Permissions\Rbac\Role
    class.

  • #​34 removes
    the method Role::setParent(); use Role::addParent() instead.

Fixed
  • #​30 fixes
    circular references within the Role::addChild() and Role::addParent()
    algorithms.

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant