-
Notifications
You must be signed in to change notification settings - Fork 15
Updated to final PSR-15 #15
Updated to final PSR-15 #15
Conversation
src/AuthenticationMiddleware.php
Outdated
@@ -1,18 +1,18 @@ | |||
<?php | |||
/** | |||
* @see https://github.com/zendframework/zend-expressive-authentication for the canonical source repository | |||
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (https://www.zend.com) | |||
* @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use range instead
use Interop\Http\Server\MiddlewareInterface; | ||
use Interop\Http\Server\RequestHandlerInterface; | ||
use Psr\Http\Server\MiddlewareInterface; | ||
use Psr\Http\Server\RequestHandlerInterface; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use alphabetical order.
@@ -1,16 +1,16 @@ | |||
<?php | |||
/** | |||
* @see https://github.com/zendframework/zend-expressive-authentication for the canonical source repository | |||
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (https://www.zend.com) | |||
* @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use range instead
composer.json
Outdated
"psr/http-message": "^1.0.1", | ||
"psr/http-server-handler": "^1.0", | ||
"psr/http-server-middleware": "^1.0", | ||
"zendframework/zend-diactoros": "^1.7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why new dependency to zendframework/zend-diactoros
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole point is not to have it there !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composer.json
Outdated
"psr/container": "^1.0", | ||
"psr/http-message": "^1.0.1" | ||
"psr/http-message": "^1.0.1", | ||
"psr/http-server-handler": "^1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need it, as it is required by psr/http-server-middleware
As explained by others, there is a test in place before using Response(). If the class does not exist an exception is thrown.
Thanks, @xtreamwayz! |
No description provided.