Skip to content

Commit de78a91

Browse files
committed
Merge branch 'feature/18-response-factory' into release-1.0.0
Close #18
2 parents fd23a1b + a282b7c commit de78a91

9 files changed

+211
-130
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

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

5+
## 1.0.0alpha2 - 2018-02-27
6+
7+
### Added
8+
9+
- Nothing.
10+
11+
### Changed
12+
13+
- [#18](https://github.com/zendframework/zend-expressive-authorization/pull/18)
14+
changes the constructor of the `Zend\Expressive\Authorization\AuthorizationMiddleware`
15+
class to accept a callable `$responseFactory` instead of a
16+
`Psr\Http\Message\ResponseInterface` response prototype. The
17+
`$responseFactory` should produce a `ResponseInterface` implementation when
18+
invoked.
19+
20+
- [#18](https://github.com/zendframework/zend-expressive-authorization/pull/18)
21+
updates the `AuthorizationMiddlewareFactory` to no longer use
22+
`Zend\Expressive\Authentication\ResponsePrototypeTrait`, and instead always
23+
depend on the `Psr\Http\Message\ResponseInterface` service to correctly return
24+
a PHP callable capable of producing a `ResponseInterface` instance.
25+
26+
### Deprecated
27+
28+
- Nothing.
29+
30+
### Removed
31+
32+
- Nothing.
33+
34+
### Fixed
35+
36+
- Nothing.
37+
538
## 1.0.0alpha1 - 2018-02-07
639

740
### Added

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
"psr/container": "^1.0",
2525
"psr/http-message": "^1.0.1",
2626
"psr/http-server-middleware": "^1.0",
27-
"zendframework/zend-expressive-authentication": "^1.0.0alpha1 || ^1.0"
27+
"zendframework/zend-expressive-authentication": "^1.0.0alpha3"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^6.5.3",
30+
"phpunit/phpunit": "^7.0.2",
3131
"roave/security-advisories": "dev-master",
3232
"zendframework/zend-coding-standard": "~1.0.0"
3333
},
3434
"conflict": {
3535
"container-interop/container-interop": "<1.2.0"
3636
},
3737
"suggest": {
38-
"zendframework/zend-expressive-authorization-acl": "^0.1 || ^1.0; provides a zend-permissions-acl-backed adapter",
39-
"zendframework/zend-expressive-authorization-rbac": "^0.1 || ^1.0; provides a zend-permissions-rbac-backed adapter"
38+
"zendframework/zend-expressive-authorization-acl": "^1.0; provides a zend-permissions-acl-backed adapter",
39+
"zendframework/zend-expressive-authorization-rbac": "^1.0; provides a zend-permissions-rbac-backed adapter"
4040
},
4141
"autoload": {
4242
"psr-4": {

0 commit comments

Comments
 (0)