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

Commit

Permalink
Merge branch 'feature/34' into develop
Browse files Browse the repository at this point in the history
Close #34
  • Loading branch information
weierophinney committed Mar 5, 2018
2 parents 334c740 + 5823ced commit ba20d96
Show file tree
Hide file tree
Showing 32 changed files with 841 additions and 767 deletions.
24 changes: 2 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,17 @@ env:

matrix:
include:
- php: 5.6
env:
- DEPS=lowest
- php: 5.6
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- php: 5.6
env:
- DEPS=latest
- TEST_COVERAGE=true
- php: 7
env:
- DEPS=lowest
- php: 7
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- CHECK_CS=true
- php: 7
env:
- DEPS=latest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- CHECK_CS=true
- php: 7.1
env:
- DEPS=latest
- TEST_COVERAGE=true
- php: 7.2
env:
- DEPS=lowest
Expand Down
58 changes: 34 additions & 24 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,59 @@

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## 2.7.0 - TBD
## 3.0.0 - TBD

### Added

- Nothing.
- [#34](https://github.com/zendframework/zend-permissions-rbac/pull/34) adds
checks for circular references in the role hierarchy when using the
`Role::addChild()` and `Role::addParent()` methods.

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed
- [#34](https://github.com/zendframework/zend-permissions-rbac/pull/34) updates
the `Role::addChild(RoleInterface $child)` method to accept only a `RoleInterface` parameter;
strings are no longer accepted.

- Nothing.
- [#34](https://github.com/zendframework/zend-permissions-rbac/pull/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:

## 2.6.1 - TBD
```php
public function assert(
Rbac $rbac,
RoleInterface $role,
string $permission
) : bool
```

### Added
### Deprecated

- Nothing.

### Changed

- Nothing.
### Removed

### Deprecated
- [#34](https://github.com/zendframework/zend-permissions-rbac/pull/34) removes
support for PHP versions prior to 7.1.

- Nothing.
- [#34](https://github.com/zendframework/zend-permissions-rbac/pull/34) removes
the [AbstractIterator](https://github.com/zendframework/zend-permissions-rbac/blob/release-2.6.0/src/AbstractIterator.php)
class. The role hierarchy no longer relies on a `RecursiveIterator`.

### Removed
- [#34](https://github.com/zendframework/zend-permissions-rbac/pull/34) removes
the [AbstractRole](https://github.com/zendframework/zend-permissions-rbac/blob/release-2.6.0/src/AbstractRole.php)
class. All its functions have been merged to the `Zend\Permissions\Rbac\Role`
class.

- Nothing.
- [#34](https://github.com/zendframework/zend-permissions-rbac/pull/34) removes
the method `Role::setParent()`; use `Role::addParent()` instead.

### Fixed

- Nothing.
- [#30](https://github.com/zendframework/zend-permissions-rbac/issues/30) fixes
circular references within the `Role::addChild()` and `Role::addParent()`
algorithms.

## 2.6.0 - 2018-02-01

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2005-2015, Zend Technologies USA, Inc.
Copyright (c) 2005-2018, Zend Technologies USA, Inc.

All rights reserved.

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[![Build Status](https://secure.travis-ci.org/zendframework/zend-permissions-rbac.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-permissions-rbac)
[![Coverage Status](https://coveralls.io/repos/zendframework/zend-permissions-rbac/badge.svg?branch=master)](https://coveralls.io/r/zendframework/zend-permissions-rbac?branch=master)

Provides role-based access control (RBAC) permissions management.
Provides [Role-Based Access Control](https://it.wikipedia.org/wiki/Role-based_access_control)
(RBAC) permissions management.

- File issues at https://github.com/zendframework/zend-permissions-rbac
- Documentation is at https://zendframework.github.io/zend-permissions-rbac/
- File issues at https://github.com/zendframework/zend-permissions-rbac/issues
- Documentation is at https://docs.zendframework.com/zend-permissions-rbac/
12 changes: 7 additions & 5 deletions composer.json
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": {
Expand All @@ -13,7 +15,7 @@
}
},
"require": {
"php": "^5.6 || ^7.0"
"php": "^7.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand All @@ -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": {
Expand Down
Loading

0 comments on commit ba20d96

Please sign in to comment.