Skip to content

Commit fd23a1b

Browse files
committed
Merge branch 'feature/16-psr-15' into release-1.0.0
Close #16
2 parents 98afab5 + b7fcfda commit fd23a1b

File tree

5 files changed

+25
-80
lines changed

5 files changed

+25
-80
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

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

5-
## 1.0.0alpha1 - TBD
5+
## 1.0.0alpha1 - 2018-02-07
66

77
### Added
88

9-
- [#11](https://github.com/zendframework/zend-expressive-authorization/pull/11) adds
9+
- [#16](https://github.com/zendframework/zend-expressive-authorization/pull/16) adds
1010
support for PSR-15.
1111

1212
### Changed
@@ -19,8 +19,10 @@ All notable changes to this project will be documented in this file, in reverse
1919

2020
### Removed
2121

22-
- [#11](https://github.com/zendframework/zend-expressive-authorization/pull/11)
23-
removes support for http-interop/http-middleware.
22+
- [#16](https://github.com/zendframework/zend-expressive-authorization/pull/16) and
23+
[#11](https://github.com/zendframework/zend-expressive-authorization/pull/11)
24+
remove support for http-interop/http-middleware and
25+
http-interop/http-server-middleware.
2426

2527
### Fixed
2628

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"authorization",
77
"middleware",
88
"psr-7",
9+
"psr-15",
910
"zf",
1011
"zendframework",
1112
"zend-expressive"
@@ -20,10 +21,10 @@
2021
},
2122
"require": {
2223
"php": "^7.1",
23-
"http-interop/http-server-middleware": "^1.0.1",
2424
"psr/container": "^1.0",
2525
"psr/http-message": "^1.0.1",
26-
"zendframework/zend-expressive-authentication": "^1.0.0-dev"
26+
"psr/http-server-middleware": "^1.0",
27+
"zendframework/zend-expressive-authentication": "^1.0.0alpha1 || ^1.0"
2728
},
2829
"require-dev": {
2930
"phpunit/phpunit": "^6.5.3",

composer.lock

Lines changed: 11 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AuthorizationMiddleware.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?php
22
/**
33
* @see https://github.com/zendframework/zend-expressive-authorization for the canonical source repository
4-
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (https://www.zend.com)
4+
* @copyright Copyright (c) 2017-2018 Zend Technologies USA Inc. (https://www.zend.com)
55
* @license https://github.com/zendframework/zend-expressive-authorization/blob/master/LICENSE.md New BSD License
66
*/
77

88
declare(strict_types=1);
99

1010
namespace Zend\Expressive\Authorization;
1111

12-
use Interop\Http\Server\MiddlewareInterface;
13-
use Interop\Http\Server\RequestHandlerInterface;
1412
use Psr\Http\Message\ResponseInterface;
1513
use Psr\Http\Message\ServerRequestInterface;
14+
use Psr\Http\Server\MiddlewareInterface;
15+
use Psr\Http\Server\RequestHandlerInterface;
1616
use Zend\Expressive\Authentication\UserInterface;
1717

1818
class AuthorizationMiddleware implements MiddlewareInterface

test/AuthorizationMiddlewareTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php
22
/**
33
* @see https://github.com/zendframework/zend-expressive-authorization for the canonical source repository
4-
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (https://www.zend.com)
4+
* @copyright Copyright (c) 2017-2018 Zend Technologies USA Inc. (https://www.zend.com)
55
* @license https://github.com/zendframework/zend-expressive-authorization/blob/master/LICENSE.md New BSD License
66
*/
77

88
declare(strict_types=1);
99

1010
namespace ZendTest\Expressive\Authorization;
1111

12-
use Interop\Http\Server\RequestHandlerInterface;
1312
use PHPUnit\Framework\TestCase;
1413
use Prophecy\Argument;
1514
use Psr\Http\Message\ResponseInterface;
1615
use Psr\Http\Message\ServerRequestInterface;
16+
use Psr\Http\Server\RequestHandlerInterface;
1717
use Zend\Expressive\Authentication\UserInterface;
1818
use Zend\Expressive\Authentication\UserRepository\UserTrait;
1919
use Zend\Expressive\Authorization\AuthorizationInterface;

0 commit comments

Comments
 (0)