Skip to content

Commit b49bf25

Browse files
authored
Merge pull request #445 from KDederichs/sf7_1.x
feat: Support Symfony 7
2 parents 1b16d97 + 91789a4 commit b49bf25

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

Diff for: .github/workflows/continuous-integration.yml

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
- dependencies: "php-http/guzzle7-adapter"
4444
php-version: "8.2"
4545
symfony-deprecations-helper: "weak"
46+
- dependencies: "php-http/guzzle7-adapter"
47+
php-version: "8.3"
48+
symfony-deprecations-helper: "weak"
4649

4750
# Test with httplug 2.x clients
4851
- dependencies: "php-http/guzzle7-adapter php-http/curl-client:^2.0.0 php-http/vcr-plugin:^1.0@dev php-http/socket-client:^2.0"
@@ -68,6 +71,10 @@ jobs:
6871
symfony-require: "5.4.*"
6972
php-version: "7.3"
7073
symfony-deprecations-helper: "weak"
74+
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^6.0"
75+
symfony-require: "6.4.*"
76+
php-version: "8.1"
77+
symfony-deprecations-helper: "weak"
7178

7279
steps:
7380
- name: "Checkout"

Diff for: CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
44

55
# Version 1
66

7+
- Added support for Symfony 7
8+
79
# 1.31.0 - 2023-11-06
810

911
- Added configuration for the `header` authentication plugin (#437).

Diff for: composer.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"php-http/message-factory": "^1.0.2",
3636
"php-http/stopwatch-plugin": "^1.2",
3737
"psr/http-message": "^1.0 || ^2.0",
38-
"symfony/config": "^4.4 || ^5.0 || ^6.0",
39-
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0",
40-
"symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0",
41-
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0",
42-
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0"
38+
"symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0",
39+
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0 || ^7.0",
40+
"symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0 || ^7.0",
41+
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0 || ^7.0",
42+
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0 || ^7.0"
4343
},
4444
"conflict": {
4545
"php-http/guzzle6-adapter": "<1.1",
@@ -48,21 +48,21 @@
4848
},
4949
"require-dev": {
5050
"guzzlehttp/psr7": "^1.7 || ^2.0",
51-
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
51+
"matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0",
5252
"nyholm/nsa": "^1.1",
5353
"nyholm/psr7": "^1.2.1",
5454
"php-http/cache-plugin": "^1.7",
5555
"php-http/mock-client": "^1.2",
5656
"php-http/promise": "^1.0",
57-
"symfony/browser-kit": "^4.4 || ^5.0 || ^6.0",
58-
"symfony/cache": "^4.4 || ^5.0 || ^6.0",
59-
"symfony/dom-crawler": "^4.4 || ^5.0 || ^6.0",
60-
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
61-
"symfony/http-foundation": "^4.4.19 || ^5.0 || ^6.0",
62-
"symfony/phpunit-bridge": "^5.3",
63-
"symfony/stopwatch": "^4.4 || ^5.0 || ^6.0",
64-
"symfony/twig-bundle": "^4.4 || ^5.0 || ^6.0",
65-
"symfony/web-profiler-bundle": "^4.4.19 || ^5.0 || ^6.0",
57+
"symfony/browser-kit": "^4.4 || ^5.0 || ^6.0 || ^7.0",
58+
"symfony/cache": "^4.4 || ^5.0 || ^6.0 || ^7.0",
59+
"symfony/dom-crawler": "^4.4 || ^5.0 || ^6.0 || ^7.0",
60+
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
61+
"symfony/http-foundation": "^4.4.19 || ^5.0 || ^6.0 || ^7.0",
62+
"symfony/phpunit-bridge": "^6.4.1",
63+
"symfony/stopwatch": "^4.4 || ^5.0 || ^6.0 || ^7.0",
64+
"symfony/twig-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
65+
"symfony/web-profiler-bundle": "^4.4.19 || ^5.0 || ^6.0 || ^7.0",
6666
"twig/twig": "^1.41 || ^2.10 || ^3.0"
6767
},
6868
"suggest": {

Diff for: tests/Functional/ServiceInstantiationTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ protected static function bootKernel(array $options = []): KernelInterface
134134
$dispatcher = static::$kernel->getContainer()->get('event_dispatcher');
135135

136136
$class = (Kernel::MAJOR_VERSION >= 5) ? RequestEvent::class : GetResponseEvent::class;
137-
$event = new $class(static::$kernel, SymfonyRequest::create('/'), HttpKernelInterface::MASTER_REQUEST);
137+
$requestType = (Kernel::MAJOR_VERSION >= 6) ? HttpKernelInterface::MAIN_REQUEST : HttpKernelInterface::MASTER_REQUEST;
138+
$event = new $class(static::$kernel, SymfonyRequest::create('/'), $requestType);
138139

139140
$dispatcher->dispatch($event, KernelEvents::REQUEST);
140141

0 commit comments

Comments
 (0)