File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ## 1.0.1 - 2018-05-14
2-
3- ### Changed
4- * Updated ` dot-flashmessenger plugin ` dependency
5-
6- ### Added
7- * Nothing
8-
9- ### Deprecated
10- * Nothing
11-
12- ### Removed
13- * Nothing
14-
15- ### Fixed
16- * Nothing
17-
18-
19- ## 1.0.0 - 2018-04-12
1+ ## 1.0.0 - 2018-05-15
202
213### Changed
224* Middleware support
235* Update ` zendframework/zend-expressive ` to ^3.0
246* Update ` zendframework/zend-expressive-template ` to ^2.0
257* Update ` dotkernel/dot-helpers ` to ^1.0
8+ * Updated ` dot-flashmessenger plugin ` dependency
269
2710### Added
2811* PSR-15 Middleware support
3114* Nothing
3215
3316### Removed
34- * HTTP Interop middleware support
17+ * HTTP InterOp middleware support
3518
3619### Fixed
3720* Nothing
Original file line number Diff line number Diff line change 2121use Dot \Authentication \Web \Utils ;
2222use Dot \FlashMessenger \FlashMessengerInterface ;
2323use Dot \Helpers \Route \RouteHelper ;
24- use Interop \Http \ServerMiddleware \DelegateInterface ;
25- use Interop \Http \ServerMiddleware \MiddlewareInterface ;
2624use Psr \Http \Message \ResponseInterface ;
2725use Psr \Http \Message \ServerRequestInterface ;
26+ use Psr \Http \Server \MiddlewareInterface ;
27+ use Psr \Http \Server \RequestHandlerInterface ;
2828use Zend \Diactoros \Response \HtmlResponse ;
2929use Zend \Diactoros \Response \RedirectResponse ;
3030use Zend \Diactoros \Uri ;
@@ -84,10 +84,10 @@ public function __construct(
8484
8585 /**
8686 * @param ServerRequestInterface $request
87- * @param DelegateInterface $delegate
87+ * @param RequestHandlerInterface $handler
8888 * @return ResponseInterface
8989 */
90- public function process (ServerRequestInterface $ request , DelegateInterface $ delegate ): ResponseInterface
90+ public function process (ServerRequestInterface $ request , RequestHandlerInterface $ handler ): ResponseInterface
9191 {
9292 if ($ this ->authentication ->hasIdentity ()) {
9393 return new RedirectResponse ($ this ->routeHelper ->generateUri ($ this ->options ->getAfterLoginRoute ()));
Original file line number Diff line number Diff line change 1616use Dot \Authentication \Web \Event \DispatchAuthenticationEventTrait ;
1717use Dot \Authentication \Web \Options \WebAuthenticationOptions ;
1818use Dot \Helpers \Route \RouteHelper ;
19- use Interop \Http \ServerMiddleware \DelegateInterface ;
20- use Interop \Http \ServerMiddleware \MiddlewareInterface ;
2119use Psr \Http \Message \ResponseInterface ;
2220use Psr \Http \Message \ServerRequestInterface ;
21+ use Psr \Http \Server \MiddlewareInterface ;
22+ use Psr \Http \Server \RequestHandlerInterface ;
2323use Zend \Diactoros \Response \RedirectResponse ;
2424
2525/**
@@ -58,10 +58,10 @@ public function __construct(
5858
5959 /**
6060 * @param ServerRequestInterface $request
61- * @param DelegateInterface $delegate
61+ * @param RequestHandlerInterface $handler
6262 * @return ResponseInterface
6363 */
64- public function process (ServerRequestInterface $ request , DelegateInterface $ delegate ): ResponseInterface
64+ public function process (ServerRequestInterface $ request , RequestHandlerInterface $ handler ): ResponseInterface
6565 {
6666 if (!$ this ->authentication ->hasIdentity ()) {
6767 return new RedirectResponse ($ this ->routeHelper ->generateUri ($ this ->options ->getAfterLogoutRoute ()));
Original file line number Diff line number Diff line change 2020use Dot \Authentication \Web \Options \WebAuthenticationOptions ;
2121use Dot \FlashMessenger \FlashMessengerInterface ;
2222use Dot \Helpers \Route \RouteHelper ;
23- use Interop \Http \ServerMiddleware \DelegateInterface ;
24- use Interop \Http \ServerMiddleware \MiddlewareInterface ;
2523use Psr \Http \Message \ResponseInterface ;
2624use Psr \Http \Message \ServerRequestInterface ;
25+ use Psr \Http \Server \MiddlewareInterface ;
26+ use Psr \Http \Server \RequestHandlerInterface ;
2727use Zend \Diactoros \Response \RedirectResponse ;
2828use Zend \Diactoros \Uri ;
2929
@@ -75,15 +75,15 @@ public function __construct(
7575
7676 /**
7777 * @param ServerRequestInterface $request
78- * @param DelegateInterface $delegate
78+ * @param RequestHandlerInterface $handler
7979 * @return ResponseInterface
8080 * @throws \Exception
8181 * @throws \Throwable
8282 */
83- public function process (ServerRequestInterface $ request , DelegateInterface $ delegate ): ResponseInterface
83+ public function process (ServerRequestInterface $ request , RequestHandlerInterface $ handler ): ResponseInterface
8484 {
8585 try {
86- $ response = $ delegate -> process ($ request );
86+ $ response = $ handler -> handle ($ request );
8787 return $ response ;
8888 } catch (UnauthorizedException $ e ) {
8989 return $ this ->handleUnauthorizedError ($ e , $ request );
You can’t perform that action at this time.
0 commit comments