Skip to content

Commit c89b98f

Browse files
committed
[PsrHttpMessageBridge] Import the bridge into the monorepo
1 parent f4b5e4f commit c89b98f

File tree

10 files changed

+102
-158
lines changed

10 files changed

+102
-158
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"psr/clock": "^1.0",
4545
"psr/container": "^1.1|^2.0",
4646
"psr/event-dispatcher": "^1.0",
47+
"psr/http-message": "^1.0|^2.0",
4748
"psr/link": "^1.1|^2.0",
4849
"psr/log": "^1|^2|^3",
4950
"symfony/contracts": "^2.5|^3.0",
@@ -94,6 +95,7 @@
9495
"symfony/property-access": "self.version",
9596
"symfony/property-info": "self.version",
9697
"symfony/proxy-manager-bridge": "self.version",
98+
"symfony/psr-http-message-bridge": "self.version",
9799
"symfony/rate-limiter": "self.version",
98100
"symfony/remote-event": "self.version",
99101
"symfony/routing": "self.version",
@@ -182,6 +184,7 @@
182184
"Symfony\\Bridge\\Doctrine\\": "src/Symfony/Bridge/Doctrine/",
183185
"Symfony\\Bridge\\Monolog\\": "src/Symfony/Bridge/Monolog/",
184186
"Symfony\\Bridge\\ProxyManager\\": "src/Symfony/Bridge/ProxyManager/",
187+
"Symfony\\Bridge\\PsrHttpMessage\\": "src/Symfony/Bridge/PsrHttpMessage/",
185188
"Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/",
186189
"Symfony\\Bundle\\": "src/Symfony/Bundle/",
187190
"Symfony\\Component\\": "src/Symfony/Component/"
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/Tests export-ignore
22
/phpunit.xml.dist export-ignore
33
/.gitattributes export-ignore
4-
/.github export-ignore
54
/.gitignore export-ignore
6-
/.php_cs.dist export-ignore

src/Symfony/Bridge/PsrHttpMessage/.github/workflows/ci.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
vendor/
22
composer.lock
33
phpunit.xml
4-
.php-cs-fixer.cache
5-
.php-cs-fixer.php
6-
.phpunit.result.cache
74
/Tests/Fixtures/App/var

src/Symfony/Bridge/PsrHttpMessage/.php-cs-fixer.dist.php

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 68 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,102 @@
11
CHANGELOG
22
=========
33

4-
# 2.3.0 (2023-07-25)
4+
6.4
5+
---
56

6-
* Leverage `Request::getPayload()` to populate the parsed body of PSR-7 requests
7-
* Implement `ValueResolverInterface` introduced with Symfony 6.2
7+
* Import the bridge into the Symfony monorepo and synchronize releases
88

9-
# 2.2.0 (2023-04-21)
9+
2.3.0
10+
-----
1011

11-
* Drop support for Symfony 4
12-
* Bump minimum version of PHP to 7.2
13-
* Support version 2 of the psr/http-message contracts
12+
* Leverage `Request::getPayload()` to populate the parsed body of PSR-7 requests
13+
* Implement `ValueResolverInterface` introduced with Symfony 6.2
1414

15-
# 2.1.3 (2022-09-05)
15+
2.2.0
16+
-----
1617

17-
* Ignore invalid HTTP headers when creating PSR7 objects
18-
* Fix for wrong type passed to `moveTo()`
18+
* Drop support for Symfony 4
19+
* Bump minimum version of PHP to 7.2
20+
* Support version 2 of the psr/http-message contracts
1921

20-
# 2.1.2 (2021-11-05)
22+
2.1.3
23+
-----
2124

22-
* Allow Symfony 6
25+
* Ignore invalid HTTP headers when creating PSR7 objects
26+
* Fix for wrong type passed to `moveTo()`
2327

24-
# 2.1.0 (2021-02-17)
28+
2.1.2
29+
-----
2530

26-
* Added a `PsrResponseListener` to automatically convert PSR-7 responses returned by controllers
27-
* Added a `PsrServerRequestResolver` that allows injecting PSR-7 request objects into controllers
31+
* Allow Symfony 6
2832

29-
# 2.0.2 (2020-09-29)
33+
2.1.0
34+
-----
3035

31-
* Fix populating server params from URI in HttpFoundationFactory
32-
* Create cookies as raw in HttpFoundationFactory
33-
* Fix BinaryFileResponse with Content-Range PsrHttpFactory
36+
* Added a `PsrResponseListener` to automatically convert PSR-7 responses returned by controllers
37+
* Added a `PsrServerRequestResolver` that allows injecting PSR-7 request objects into controllers
3438

35-
# 2.0.1 (2020-06-25)
39+
2.0.2
40+
-----
3641

37-
* Don't normalize query string in PsrHttpFactory
38-
* Fix conversion for HTTPS requests
39-
* Fix populating default port and headers in HttpFoundationFactory
42+
* Fix populating server params from URI in HttpFoundationFactory
43+
* Create cookies as raw in HttpFoundationFactory
44+
* Fix BinaryFileResponse with Content-Range PsrHttpFactory
4045

41-
# 2.0.0 (2020-01-02)
46+
2.0.1
47+
-----
4248

43-
* Remove DiactorosFactory
49+
* Don't normalize query string in PsrHttpFactory
50+
* Fix conversion for HTTPS requests
51+
* Fix populating default port and headers in HttpFoundationFactory
4452

45-
# 1.3.0 (2019-11-25)
53+
2.0.0
54+
-----
4655

47-
* Added support for streamed requests
48-
* Added support for Symfony 5.0+
49-
* Fixed bridging UploadedFile objects
50-
* Bumped minimum version of Symfony to 4.4
56+
* Remove DiactorosFactory
5157

52-
# 1.2.0 (2019-03-11)
58+
1.3.0
59+
-----
5360

54-
* Added new documentation links
55-
* Bumped minimum version of PHP to 7.1
56-
* Added support for streamed responses
61+
* Added support for streamed requests
62+
* Added support for Symfony 5.0+
63+
* Fixed bridging UploadedFile objects
64+
* Bumped minimum version of Symfony to 4.4
5765

58-
# 1.1.2 (2019-04-03)
66+
1.2.0
67+
-----
5968

60-
* Fixed createResponse
69+
* Added new documentation links
70+
* Bumped minimum version of PHP to 7.1
71+
* Added support for streamed responses
6172

62-
# 1.1.1 (2019-03-11)
73+
1.1.2
74+
-----
6375

64-
* Deprecated DiactorosFactory, use PsrHttpFactory instead
65-
* Removed triggering of deprecation
76+
* Fixed createResponse
6677

67-
# 1.1.0 (2018-08-30)
78+
1.1.1
79+
-----
6880

69-
* Added support for creating PSR-7 messages using PSR-17 factories
81+
* Deprecated DiactorosFactory, use PsrHttpFactory instead
82+
* Removed triggering of deprecation
7083

71-
# 1.0.2 (2017-12-19)
84+
1.1.0
85+
-----
7286

73-
* Fixed request target in PSR7 Request (mtibben)
87+
* Added support for creating PSR-7 messages using PSR-17 factories
7488

75-
# 1.0.1 (2017-12-04)
89+
1.0.2
90+
-----
7691

77-
* Added support for Symfony 4 (dunglas)
92+
* Fixed request target in PSR7 Request (mtibben)
7893

79-
# 1.0.0 (2016-09-14)
94+
1.0.1
95+
-----
8096

81-
* Initial release
97+
* Added support for Symfony 4 (dunglas)
98+
99+
1.0.0
100+
-----
101+
102+
* Initial release

src/Symfony/Bridge/PsrHttpMessage/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2021 Fabien Potencier
1+
Copyright (c) 2004-present Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/App/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ protected function configureContainer(ContainerConfigurator $container): void
5050
'router' => ['utf8' => true],
5151
'secret' => 'for your eyes only',
5252
'test' => true,
53+
'annotations' => false,
5354
'http_method_override' => false,
5455
]);
5556

src/Symfony/Bridge/PsrHttpMessage/composer.json

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=7.2.5",
20-
"psr/http-message": "^1.0 || ^2.0",
21-
"symfony/deprecation-contracts": "^2.5 || ^3.0",
22-
"symfony/http-foundation": "^5.4 || ^6.0"
19+
"php": ">=8.1",
20+
"psr/http-message": "^1.0|^2.0",
21+
"symfony/deprecation-contracts": "^2.5|^3.0",
22+
"symfony/http-foundation": "^5.4|^6.0"
2323
},
2424
"require-dev": {
25-
"symfony/browser-kit": "^5.4 || ^6.0",
26-
"symfony/config": "^5.4 || ^6.0",
27-
"symfony/event-dispatcher": "^5.4 || ^6.0",
28-
"symfony/framework-bundle": "^5.4 || ^6.0",
29-
"symfony/http-kernel": "^5.4 || ^6.0",
25+
"symfony/browser-kit": "^5.4|^6.0",
26+
"symfony/config": "^5.4|^6.0",
27+
"symfony/event-dispatcher": "^5.4|^6.0",
28+
"symfony/framework-bundle": "^5.4|^6.0",
29+
"symfony/http-kernel": "^5.4|^6.0",
3030
"symfony/phpunit-bridge": "^6.2",
3131
"nyholm/psr7": "^1.1",
32-
"psr/log": "^1.1 || ^2 || ^3"
32+
"psr/log": "^1.1|^2|^3"
3333
},
3434
"suggest": {
3535
"nyholm/psr7": "For a super lightweight PSR-7/17 implementation"
@@ -40,9 +40,5 @@
4040
"/Tests/"
4141
]
4242
},
43-
"extra": {
44-
"branch-alias": {
45-
"dev-main": "2.3-dev"
46-
}
47-
}
43+
"minimum-stability": "dev"
4844
}
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.3/phpunit.xsd"
5+
backupGlobals="false"
56
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
117
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
1210
>
11+
<php>
12+
<ini name="error_reporting" value="-1" />
13+
</php>
14+
1315
<testsuites>
1416
<testsuite name="Symfony PSR-7 HTTP message Bridge Test Suite">
1517
<directory>./Tests/</directory>
1618
</testsuite>
1719
</testsuites>
1820

19-
<filter>
20-
<whitelist>
21+
<coverage>
22+
<include>
2123
<directory>./</directory>
22-
<exclude>
23-
<directory>./Resources</directory>
24-
<directory>./Tests</directory>
25-
<directory>./vendor</directory>
26-
</exclude>
27-
</whitelist>
28-
</filter>
24+
</include>
25+
<exclude>
26+
<directory>./Resources</directory>
27+
<directory>./Tests</directory>
28+
<directory>./vendor</directory>
29+
</exclude>
30+
</coverage>
2931
</phpunit>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy