Update dependency zendframework/zend-permissions-rbac to v3 #2
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.
This PR contains the following updates:
^2.6
->^3.0
Release Notes
zendframework/zend-permissions-rbac
v3.0.2
Compare Source
Added
Changed
Deprecated
Removed
Fixed
v3.0.1
Compare Source
Added
Changed
the return type hints of
RoleInterface::getChildren()
andRoleInterface::getParents()
from
array
toiterable
. This is not a BC break thanks to Iterable Type VarianceDeprecated
Removed
Fixed
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()
andRole::addParent()
methods.#35 adds
the method
Role::getPermissions(bool $children = true)
for retrieving allpermissions to the related role, including all child permissions when
$children
is booleantrue
.#35 adds
the method
Rbac::getRoles()
, which returns all roles registered with theinstance as a flat array of instances.
Changed
#34 updates
the
Role::addChild(RoleInterface $child)
method to accept only aRoleInterface
parameter;strings are no longer accepted.
#34 updates
the
Zend\Permissions\Rbac\AssertionInterface
, adding two parameters to theassert()
definition and defining a return type, so that it now reads asfollows:
Deprecated
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()
; useRole::addParent()
instead.Fixed
circular references within the
Role::addChild()
andRole::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.
This PR has been generated by WhiteSource Renovate. View repository job log here.