Skip to content

Commit bfc68b7

Browse files
committed
Tweak implementation version ranges
1 parent 2ae37d6 commit bfc68b7

File tree

3 files changed

+75
-69
lines changed

3 files changed

+75
-69
lines changed

src/Implementations/Psr17/RequestFactories.php

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,73 +35,75 @@ public static function candidates(): CandidatesCollection
3535

3636
self::$candidates = CandidatesCollection::create();
3737

38-
// psr-mock/http-factory-implementation 1.0+ is PSR-18 compatible.
3938
self::$candidates->add(CandidateEntity::create(
4039
package: 'psr-mock/http-factory-implementation',
4140
version: '^1.0',
4241
builder: static fn (string $class = '\PsrMock\Psr17\RequestFactory'): object => new $class(),
4342
));
4443

45-
// nyholm/psr7 1.2+ is PSR-17 compatible.
4644
self::$candidates->add(CandidateEntity::create(
47-
package: 'nyholm/psr7',
48-
version: '^1.2',
49-
builder: static fn (string $class = '\Nyholm\Psr7\Factory\Psr17Factory'): object => new $class(),
45+
package: 'guzzlehttp/psr7',
46+
version: '^2.0',
47+
builder: static fn (string $class = '\GuzzleHttp\Psr7\HttpFactory'): object => new $class(),
5048
));
5149

52-
// guzzlehttp/psr7 1.6+ is PSR-17 compatible.
5350
self::$candidates->add(CandidateEntity::create(
54-
package: 'guzzlehttp/psr7',
55-
version: '^1.6',
56-
builder: static fn (string $class = '\GuzzleHttp\Psr7\HttpFactory'): object => new $class(),
51+
package: 'nyholm/psr7',
52+
version: '^0.2.2',
53+
builder: static fn (string $class = '\Nyholm\Psr7\Factory\MessageFactory'): object => new $class(),
5754
));
5855

59-
// zendframework/zend-diactoros 2.0+ is PSR-17 compatible. (Caution: Abandoned!)
6056
self::$candidates->add(CandidateEntity::create(
61-
package: 'zendframework/zend-diactoros',
62-
version: '^2.0',
63-
builder: static fn (string $class = '\Zend\Diactoros\RequestFactory'): object => new $class(),
57+
package: 'nyholm/psr7',
58+
version: '^1.0',
59+
builder: static fn (string $class = '\Nyholm\Psr7\Factory\Psr17Factory'): object => new $class(),
6460
));
6561

66-
// http-interop/http-factory-guzzle 1.0+ is PSR-17 compatible.
6762
self::$candidates->add(CandidateEntity::create(
6863
package: 'http-interop/http-factory-guzzle',
69-
version: '^1.0',
64+
version: '^0.2 | ^1.0',
7065
builder: static fn (string $class = '\Http\Factory\Guzzle\RequestFactory'): object => new $class(),
7166
));
7267

73-
// laminas/laminas-diactoros 2.0+ is PSR-17 compatible
68+
self::$candidates->add(CandidateEntity::create(
69+
package: 'zendframework/zend-diactoros',
70+
version: '^2.0',
71+
builder: static fn (string $class = '\Zend\Diactoros\RequestFactory'): object => new $class(),
72+
));
73+
7474
self::$candidates->add(CandidateEntity::create(
7575
package: 'laminas/laminas-diactoros',
7676
version: '^2.0',
7777
builder: static fn (string $class = '\Laminas\Diactoros\RequestFactory'): object => new $class(),
7878
));
7979

80-
// slim/psr7 1.0+ is PSR-17 compatible.
8180
self::$candidates->add(CandidateEntity::create(
8281
package: 'slim/psr7',
8382
version: '^1.0',
8483
builder: static fn (string $class = '\Slim\Psr7\Factory\RequestFactory'): object => new $class(),
8584
));
8685

87-
// typo3/core 10.0+ is PSR-17 compatible.
8886
self::$candidates->add(CandidateEntity::create(
8987
package: 'typo3/core',
90-
version: '^10.0',
88+
version: '^10.1 | ^11.0 | ^12.0',
9189
builder: static fn (string $class = '\TYPO3\CMS\Core\Http\RequestFactory'): object => new $class(),
9290
));
9391

94-
// nimbly/capsule 1.0+ is PSR-17 compatible.
9592
self::$candidates->add(CandidateEntity::create(
9693
package: 'nimbly/capsule',
97-
version: '^1.0',
94+
version: '^2.0',
9895
builder: static fn (string $class = '\Nimbly\Capsule\Factory\RequestFactory'): object => new $class(),
9996
));
10097

101-
// httpsoft/http-message 1.0+ is PSR-17 compatible.
98+
self::$candidates->add(CandidateEntity::create(
99+
package: 'tuupola/http-factory',
100+
version: '^1.0.2',
101+
builder: static fn (string $class = '\Tuupola\Http\Factory\RequestFactory'): object => new $class(),
102+
));
103+
102104
self::$candidates->add(CandidateEntity::create(
103105
package: 'httpsoft/http-message',
104-
version: '^1.0',
106+
version: '^1.0.4',
105107
builder: static fn (string $class = '\HttpSoft\Message\RequestFactory'): object => new $class(),
106108
));
107109

src/Implementations/Psr17/ResponseFactories.php

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,73 +34,75 @@ public static function candidates(): CandidatesCollection
3434

3535
self::$candidates = CandidatesCollection::create();
3636

37-
// psr-mock/http-factory-implementation 1.0+ is PSR-18 compatible.
3837
self::$candidates->add(CandidateEntity::create(
3938
package: 'psr-mock/http-factory-implementation',
4039
version: '^1.0',
4140
builder: static fn (string $class = '\PsrMock\Psr17\ResponseFactory'): object => new $class(),
4241
));
4342

44-
// nyholm/psr7 1.2+ is PSR-17 compatible.
43+
self::$candidates->add(CandidateEntity::create(
44+
package: 'guzzlehttp/psr7',
45+
version: '^2.0',
46+
builder: static fn (string $class = '\GuzzleHttp\Psr7\HttpFactory'): object => new $class(),
47+
));
48+
4549
self::$candidates->add(CandidateEntity::create(
4650
package: 'nyholm/psr7',
47-
version: '^1.2',
51+
version: '^0.2.2',
52+
builder: static fn (string $class = '\Nyholm\Psr7\Factory\MessageFactory'): object => new $class(),
53+
));
54+
55+
self::$candidates->add(CandidateEntity::create(
56+
package: 'nyholm/psr7',
57+
version: '^1.0',
4858
builder: static fn (string $class = '\Nyholm\Psr7\Factory\Psr17Factory'): object => new $class(),
4959
));
5060

51-
// guzzlehttp/psr7 1.6+ is PSR-17 compatible.
5261
self::$candidates->add(CandidateEntity::create(
53-
package: 'guzzlehttp/psr7',
54-
version: '^1.6',
55-
builder: static fn (string $class = '\GuzzleHttp\Psr7\HttpFactory'): object => new $class(),
62+
package: 'http-interop/http-factory-guzzle',
63+
version: '^0.2 | ^1.0',
64+
builder: static fn (string $class = '\Http\Factory\Guzzle\ResppnseFactory'): object => new $class(),
5665
));
5766

58-
// zendframework/zend-diactoros 2.0+ is PSR-17 compatible. (Caution: Abandoned!)
5967
self::$candidates->add(CandidateEntity::create(
6068
package: 'zendframework/zend-diactoros',
6169
version: '^2.0',
6270
builder: static fn (string $class = '\Zend\Diactoros\ResponseFactory'): object => new $class(),
6371
));
6472

65-
// http-interop/http-factory-guzzle 1.0+ is PSR-17 compatible.
66-
self::$candidates->add(CandidateEntity::create(
67-
package: 'http-interop/http-factory-guzzle',
68-
version: '^1.0',
69-
builder: static fn (string $class = '\Http\Factory\Guzzle\ResponseFactory'): object => new $class(),
70-
));
71-
72-
// laminas/laminas-diactoros 2.0+ is PSR-17 compatible
7373
self::$candidates->add(CandidateEntity::create(
7474
package: 'laminas/laminas-diactoros',
7575
version: '^2.0',
7676
builder: static fn (string $class = '\Laminas\Diactoros\ResponseFactory'): object => new $class(),
7777
));
7878

79-
// slim/psr7 1.0+ is PSR-17 compatible.
8079
self::$candidates->add(CandidateEntity::create(
8180
package: 'slim/psr7',
8281
version: '^1.0',
8382
builder: static fn (string $class = '\Slim\Psr7\Factory\ResponseFactory'): object => new $class(),
8483
));
8584

86-
// typo3/core 10.0+ is PSR-17 compatible.
8785
self::$candidates->add(CandidateEntity::create(
8886
package: 'typo3/core',
89-
version: '^10.0',
87+
version: '^10.1 | ^11.0 | ^12.0',
9088
builder: static fn (string $class = '\TYPO3\CMS\Core\Http\ResponseFactory'): object => new $class(),
9189
));
9290

93-
// nimbly/capsule 1.0+ is PSR-17 compatible.
9491
self::$candidates->add(CandidateEntity::create(
9592
package: 'nimbly/capsule',
96-
version: '^1.0',
93+
version: '^2.0',
9794
builder: static fn (string $class = '\Nimbly\Capsule\Factory\ResponseFactory'): object => new $class(),
9895
));
9996

100-
// httpsoft/http-message 1.0+ is PSR-17 compatible.
97+
self::$candidates->add(CandidateEntity::create(
98+
package: 'tuupola/http-factory',
99+
version: '^1.0.2',
100+
builder: static fn (string $class = '\Tuupola\Http\Factory\ResponseFactory'): object => new $class(),
101+
));
102+
101103
self::$candidates->add(CandidateEntity::create(
102104
package: 'httpsoft/http-message',
103-
version: '^1.0',
105+
version: '^1.0.4',
104106
builder: static fn (string $class = '\HttpSoft\Message\ResponseFactory'): object => new $class(),
105107
));
106108

src/Implementations/Psr17/StreamFactories.php

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,73 +34,75 @@ public static function candidates(): CandidatesCollection
3434

3535
self::$candidates = CandidatesCollection::create();
3636

37-
// psr-mock/http-factory-implementation 1.0+ is PSR-18 compatible.
3837
self::$candidates->add(CandidateEntity::create(
3938
package: 'psr-mock/http-factory-implementation',
4039
version: '^1.0',
4140
builder: static fn (string $class = '\PsrMock\Psr17\StreamFactory'): object => new $class(),
4241
));
4342

44-
// nyholm/psr7 1.2+ is PSR-17 compatible.
4543
self::$candidates->add(CandidateEntity::create(
46-
package: 'nyholm/psr7',
47-
version: '^1.2',
48-
builder: static fn (string $class = '\Nyholm\Psr7\Factory\Psr17Factory'): object => new $class(),
44+
package: 'guzzlehttp/psr7',
45+
version: '^2.0',
46+
builder: static fn (string $class = '\GuzzleHttp\Psr7\HttpFactory'): object => new $class(),
4947
));
5048

51-
// guzzlehttp/psr7 1.6+ is PSR-17 compatible.
5249
self::$candidates->add(CandidateEntity::create(
53-
package: 'guzzlehttp/psr7',
54-
version: '^1.6',
55-
builder: static fn (string $class = '\GuzzleHttp\Psr7\HttpFactory'): object => new $class(),
50+
package: 'nyholm/psr7',
51+
version: '^0.2.2',
52+
builder: static fn (string $class = '\Nyholm\Psr7\Factory\MessageFactory'): object => new $class(),
5653
));
5754

58-
// zendframework/zend-diactoros 2.0+ is PSR-17 compatible. (Caution: Abandoned!)
5955
self::$candidates->add(CandidateEntity::create(
60-
package: 'zendframework/zend-diactoros',
61-
version: '^2.0',
62-
builder: static fn (string $class = '\Zend\Diactoros\StreamFactory'): object => new $class(),
56+
package: 'nyholm/psr7',
57+
version: '^1.0',
58+
builder: static fn (string $class = '\Nyholm\Psr7\Factory\Psr17Factory'): object => new $class(),
6359
));
6460

65-
// http-interop/http-factory-guzzle 1.0+ is PSR-17 compatible.
6661
self::$candidates->add(CandidateEntity::create(
6762
package: 'http-interop/http-factory-guzzle',
68-
version: '^1.0',
63+
version: '^0.2 | ^1.0',
6964
builder: static fn (string $class = '\Http\Factory\Guzzle\StreamFactory'): object => new $class(),
7065
));
7166

72-
// laminas/laminas-diactoros 2.0+ is PSR-17 compatible
67+
self::$candidates->add(CandidateEntity::create(
68+
package: 'zendframework/zend-diactoros',
69+
version: '^2.0',
70+
builder: static fn (string $class = '\Zend\Diactoros\StreamFactory'): object => new $class(),
71+
));
72+
7373
self::$candidates->add(CandidateEntity::create(
7474
package: 'laminas/laminas-diactoros',
7575
version: '^2.0',
7676
builder: static fn (string $class = '\Laminas\Diactoros\StreamFactory'): object => new $class(),
7777
));
7878

79-
// slim/psr7 1.0+ is PSR-17 compatible.
8079
self::$candidates->add(CandidateEntity::create(
8180
package: 'slim/psr7',
8281
version: '^1.0',
8382
builder: static fn (string $class = '\Slim\Psr7\Factory\StreamFactory'): object => new $class(),
8483
));
8584

86-
// typo3/core 10.0+ is PSR-17 compatible.
8785
self::$candidates->add(CandidateEntity::create(
8886
package: 'typo3/core',
89-
version: '^10.0',
87+
version: '^10.1 | ^11.0 | ^12.0',
9088
builder: static fn (string $class = '\TYPO3\CMS\Core\Http\StreamFactory'): object => new $class(),
9189
));
9290

93-
// nimbly/capsule 1.0+ is PSR-17 compatible.
9491
self::$candidates->add(CandidateEntity::create(
9592
package: 'nimbly/capsule',
96-
version: '^1.0',
93+
version: '^2.0',
9794
builder: static fn (string $class = '\Nimbly\Capsule\Factory\StreamFactory'): object => new $class(),
9895
));
9996

100-
// httpsoft/http-message 1.0+ is PSR-17 compatible.
97+
self::$candidates->add(CandidateEntity::create(
98+
package: 'tuupola/http-factory',
99+
version: '^1.0.2',
100+
builder: static fn (string $class = '\Tuupola\Http\Factory\StreamFactory'): object => new $class(),
101+
));
102+
101103
self::$candidates->add(CandidateEntity::create(
102104
package: 'httpsoft/http-message',
103-
version: '^1.0',
105+
version: '^1.0.4',
104106
builder: static fn (string $class = '\HttpSoft\Message\StreamFactory'): object => new $class(),
105107
));
106108

0 commit comments

Comments
 (0)