-
Notifications
You must be signed in to change notification settings - Fork 150
Implement PSR-17 #326
Implement PSR-17 #326
Conversation
src/StreamFactory.php
Outdated
@@ -0,0 +1,45 @@ | |||
<?php | |||
/** | |||
* @see https://github.com/zendframework/zend-expressive for the canonical source repository |
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.
Shouldn't this be zend-diactoros
instead of zend-expressive
?
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.
Arrgggghhh! Yes. I'll fix that momentarily.
src/StreamFactory.php
Outdated
/** | ||
* @see https://github.com/zendframework/zend-expressive for the canonical source repository | ||
* @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com) | ||
* @license https://github.com/zendframework/zend-expressive/blob/master/LICENSE.md New BSD License |
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.
zend-diactoros
instead of zend-expressive
src/UploadedFileFactory.php
Outdated
@@ -0,0 +1,31 @@ | |||
<?php | |||
/** | |||
* @see https://github.com/zendframework/zend-expressive for the canonical source repository |
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.
zend-diactoros
instead of zend-expressive
src/UploadedFileFactory.php
Outdated
/** | ||
* @see https://github.com/zendframework/zend-expressive for the canonical source repository | ||
* @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com) | ||
* @license https://github.com/zendframework/zend-expressive/blob/master/LICENSE.md New BSD License |
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.
zend-diactoros
instead of zend-expressive
src/RequestFactory.php
Outdated
|
||
class RequestFactory implements RequestFactoryInterface | ||
{ | ||
public function createRequest(string $method, $uri) : RequestInterface |
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.
Does this work without @inheritdoc
? Also for the exceptions?
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.
@xtreamwayz
Can you answer this question?
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.
I'll add the @inheritDoc
annotations.
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.
LGTM except the url's used in the top docblocks
This patch implements the PSR-17 interfaces, and tests them against the http-interop/http-factory-tests integration test suite. As part of the change, we are also able to remove the additional integration test dependency when testing against the PSR-7 integration tests. Those tests rely on PSR-17 factories, which we now provide, and map within the `phpunit.xml.dist` file. As such, both PSR-7 and PSR-17 integration tests will run for every build target. All PSR-17 implementations are alongside the PSR-7 classes they create. Also adds php nightly build to matrix, to ensure we are prepared for PHP 7.3.
70b313a
to
190349f
Compare
URLs fixed, and |
This patch implements the PSR-17 interfaces, and tests them against the http-interop/http-factory-tests integration test suite.
As part of the change, we are also able to remove the additional integration test dependency when testing against the PSR-7 integration tests. Those tests rely on PSR-17 factories, which we now provide, and map within the
phpunit.xml.dist
file. As such, both PSR-7 and PSR-17 integration tests will run for every build target.All PSR-17 implementations are alongside the PSR-7 classes they create.
Also adds php nightly build to matrix, to ensure we are prepared for PHP 7.3.