Skip to content

[PsrHttpMessageBridge] Import the bridge into the monorepo #51100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 159 commits into from
Jul 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
01b110b
added the initial set of files
fabpot May 21, 2015
ca41146
Initial support
dunglas May 21, 2015
3f8977e
feature #1 Initial support (dunglas)
fabpot May 29, 2015
dc7e308
removed the branch alias for now as we are pre 1.0
fabpot May 29, 2015
d7660b8
Suggest psr/http-message-implementation
dunglas Jul 9, 2015
bab1530
Test Diactoros Factory with PHP 5.4
dunglas Jul 9, 2015
3664dc0
minor #7 Test Diactoros Factory with PHP 5.4 (dunglas)
fabpot Jul 16, 2015
305c0fe
Remove use of deprecated 'deep' parameter
KorvinSzanto Oct 30, 2015
ac5cd86
minor #14 Remove use of deprecated 'deep' parameter in tests (KorvinS…
dunglas Nov 4, 2015
a388c43
update Travis CI configuration
xabbuh Feb 15, 2016
9c747c4
Merge pull request #19 from xabbuh/travis-config
dunglas Feb 16, 2016
9624b8b
Allow multiple calls to Request::getContent()
aimeos Feb 14, 2016
d16c63c
bug #18 Allow multiple calls to Request::getContent() (aimeos)
dunglas Feb 16, 2016
101b608
Handles null file in createrequest bridge.
ahundiak Aug 19, 2015
e5d62e6
Fixes based on code-review
Danielss89 Jun 2, 2016
a1a631a
Update assert error message
Danielss89 Aug 18, 2016
7a5aa92
bug #23 Fixes #9 Bridge error when no file is selected (ahundiak, Dan…
fabpot Aug 18, 2016
a59c572
Fixes #16 Symfony Request created without any URI
rougin May 21, 2016
1c30b17
bug #22 Fixes #16 Symfony Request created without any URI (rougin)
fabpot Sep 13, 2016
d2db47c
removed obsolete CHANGELOG file
fabpot Sep 13, 2016
29be4f8
updated LICENCE year
fabpot Sep 13, 2016
98ab85a
Fix REQUEST_METHOD on symfony request
Sep 14, 2016
14269f9
bug #28 Fix REQUEST_METHOD on symfony request (csunol)
fabpot Sep 14, 2016
533d3e4
added a CHANGELOG for 1.0
fabpot Sep 14, 2016
66085f2
preparing 1.0 release
fabpot Sep 14, 2016
f5c46f0
test suite compatibility with PHPUnit 6
xabbuh May 4, 2017
147a238
minor #31 test suite compatibility with PHPUnit 6 (xabbuh)
fabpot May 4, 2017
97635f1
Allow Symfony 4
dunglas May 18, 2017
b209840
minor #32 Allow Symfony 4 (dunglas)
fabpot Jul 23, 2017
64c0cb0
Run PHP 5.3 tests on Precise
Dec 12, 2017
64640ee
minor #38 Run PHP 5.3 tests on Precise (Lctrs)
fabpot Dec 12, 2017
94fcfa5
Fix the request target in PSR7 Request
mtibben May 3, 2017
c2b7579
bug #30 Fix the request target in PSR7 Request (mtibben)
fabpot Dec 19, 2017
8780dd3
Fixed broken build
Nyholm Aug 4, 2018
f11f173
feature #45 Fixed broken build (Nyholm)
fabpot Aug 8, 2018
dd81b4b
Create PSR-7 messages using PSR-17 factories
ajgarlag Aug 8, 2018
eddd6c8
feature #43 Create PSR-7 messages using PSR-17 factories (ajgarlag)
fabpot Aug 30, 2018
c2282e3
Updated changelog
Nyholm Aug 8, 2018
f26d01f
minor #47 Updated changelog (Nyholm)
fabpot Aug 30, 2018
c821241
bumped version to 1.1
fabpot Aug 30, 2018
53c15a6
updated CHANGELOG
fabpot Aug 30, 2018
8ff61e5
Fix compatability issue with "zendframework/zend-diactoros": "^2.0." …
uphlewis Oct 4, 2018
25f9c3a
Excluded tests from classmap
samnela Nov 18, 2018
757ea81
[Bugfix] Typo header set-sookie
grachevko Dec 21, 2018
5076934
bug #54 Fix #51 (compatability issue with zendframework/zend-diactoro…
nicolas-grekas Mar 11, 2019
36a8065
Deprecate DiactorosFactory, use nyholm/psr7 for tests
nicolas-grekas Mar 11, 2019
16eb6e1
minor #57 Excluded tests from classmap (samnela)
nicolas-grekas Mar 11, 2019
f6d7d3a
bug #58 [Bugfix] Typo header set-sookie (grachevko)
nicolas-grekas Mar 11, 2019
5ee1f8f
Fix SameSite attribute conversion from PSR7 to HttpFoundation
ajgarlag Jan 29, 2019
3a52e44
bug #59 Fix SameSite attribute conversion from PSR7 to HttpFoundation…
nicolas-grekas Mar 11, 2019
f2c48c5
fix tests
nicolas-grekas Mar 11, 2019
5f9a032
typo
nicolas-grekas Mar 11, 2019
ba672d8
bump branch-alias
nicolas-grekas Mar 11, 2019
dd1111e
removed 'Set-Cookie' from header when it is already converted to a Sy…
tinyroy Jul 17, 2016
8592ca3
bug #61 removed 'Set-Cookie' from header when it is already converted…
nicolas-grekas Mar 11, 2019
921f866
Undeprecate DiactorosFactory for 1.1
nicolas-grekas Mar 11, 2019
5e5e0c3
Revert "Undeprecate DiactorosFactory for 1.1"
nicolas-grekas Mar 11, 2019
8e10923
bump to PHP 7.1
nicolas-grekas Mar 11, 2019
aebc14b
feature #62 bump to PHP 7.1 (nicolas-grekas)
nicolas-grekas Mar 11, 2019
7cc1605
Add support for streamed response
danizord Sep 26, 2018
8564bf7
Convert Request/Response multiple times
Nyholm Aug 8, 2018
4133c7a
bug #48 Convert Request/Response multiple times (Nyholm)
nicolas-grekas Mar 11, 2019
c1cb51c
feature #50 Add support for streamed response (danizord)
nicolas-grekas Mar 11, 2019
59b9406
Added links to documentation
Nyholm Mar 11, 2019
9ab9d71
minor #63 Added links to documentation (Nyholm)
nicolas-grekas Mar 11, 2019
580de38
Fixed createResponse
Mar 27, 2019
19905b0
Fix tests
ajgarlag Mar 27, 2019
7a4b449
minor #65 Fix tests (ajgarlag)
nicolas-grekas Apr 3, 2019
a33352a
bug #64 Fixed createResponse (ddegasperi)
nicolas-grekas Apr 3, 2019
81ae86d
Merge branch '1.1'
nicolas-grekas Apr 3, 2019
1158149
Allow Symfony 5.0
rbaarsma Nov 23, 2019
5aa8ca9
bug #69 Allow Symfony 5.0 (rbaarsma)
nicolas-grekas Nov 25, 2019
df26630
Add support for streamed Symfony request
Ekman Sep 24, 2019
3d10a6c
feature #66 Add support for streamed Symfony request (Ekman)
nicolas-grekas Nov 25, 2019
e9a9557
Cleanup after bump to Symfony v4.4
nicolas-grekas Nov 25, 2019
c4c904a
minor #71 Cleanup after bump to Symfony v4.4 (nicolas-grekas)
nicolas-grekas Nov 25, 2019
9ad4bcc
Updated CHANGELOG
rbaarsma Nov 23, 2019
7ab4fe4
minor #70 Updated CHANGELOG (rbaarsma)
nicolas-grekas Nov 25, 2019
ec7892b
Fix CHANGELOG, bump branch-alias
nicolas-grekas Nov 25, 2019
a4f9f6d
Use adapter for UploadedFile objects
nicolas-grekas Nov 25, 2019
9d3e80d
bug #72 Use adapter for UploadedFile objects (nicolas-grekas)
nicolas-grekas Nov 25, 2019
dfc5238
Remove deprecated code
fabpot Jan 2, 2020
ce709cd
feature #75 Remove deprecated code (fabpot)
fabpot Jan 2, 2020
126903c
Fix format of CHANGELOG.md
nicolas-grekas Feb 13, 2020
d336c73
fix conversion for https requests
4rthem Apr 2, 2020
9243f93
Allow installation on php 8.
derrabus May 31, 2020
e86de3f
minor #79 Allow installation on php 8 (derrabus)
nicolas-grekas Jun 13, 2020
1309b64
bug #77 fix conversion for https requests (4rthem)
nicolas-grekas Jun 13, 2020
4f30401
Fix populating default port and headers in HttpFoundationFactory
mleczakm May 20, 2019
df735ec
bug #78 Fix populating default port and headers in HttpFoundationFact…
nicolas-grekas Jun 25, 2020
bc25829
Don't normalize query string in PsrHttpFactory
nicolas-grekas Jun 25, 2020
e44f249
bug #81 Don't normalize query string in PsrHttpFactory (nicolas-grekas)
nicolas-grekas Jun 25, 2020
5d5932d
Fix BinaryFileResponse with range to psr response conversion
iluuu1994 Sep 25, 2020
cffb3a8
bug #85 Fix BinaryFileResponse with range to psr response conversion …
nicolas-grekas Sep 29, 2020
42cca49
Create cookies as raw in HttpFoundationFactory
nicolas-grekas Sep 29, 2020
66095a5
Fix populating server params from URI in HttpFoundationFactory
nicolas-grekas Sep 29, 2020
4933e04
bug #86 Create cookies as raw in HttpFoundationFactory (nicolas-grekas)
nicolas-grekas Sep 29, 2020
a20fff9
bug #87 Fix populating server params from URI in HttpFoundationFactor…
nicolas-grekas Sep 29, 2020
51a21cb
Update changelog
nicolas-grekas Sep 29, 2020
c62f7d0
Update branch-alias
nicolas-grekas Nov 19, 2020
a6697fd
Fix CI failures with Xdebug 3 and test on PHP 7.4/8.0 as well
derrabus Feb 16, 2021
488df9b
minor #90 Fix CI failures with Xdebug 3 and test on PHP 7.4/8.0 as we…
derrabus Feb 16, 2021
2bead22
Fix CS
derrabus Feb 16, 2021
e62b239
minor #91 Fix CS (derrabus)
derrabus Feb 16, 2021
aa26e61
PSR HTTP message converters for controllers
derrabus Feb 16, 2021
81db2d4
feature #89 PSR HTTP message converters for controllers (derrabus)
derrabus Feb 17, 2021
7078739
remove link to sensio extra bundle which removed psr7 support
Tobion Feb 17, 2021
3d9241f
minor #92 remove link to sensio extra bundle which removed psr7 suppo…
derrabus Feb 17, 2021
87fabb9
Fix copyright year
chalasr Mar 10, 2021
26068fa
Minor cleanups
derrabus Mar 10, 2021
8e13ae4
Allow psr/log 2 and 3
derrabus Jul 18, 2021
c901299
bug #95 Allow `psr/log` 2 and 3 (derrabus)
derrabus Jul 27, 2021
ab64c69
Run PHPUnit on GitHub Actions
derrabus Jul 18, 2021
f12a9e6
minor #96 Run PHPUnit on GitHub Actions (derrabus)
derrabus Jul 27, 2021
d152649
Inline $tmpDir
derrabus Aug 4, 2021
d558dcd
minor #97 Inline $tmpDir (derrabus)
derrabus Aug 4, 2021
f8f70fa
Add return types to fixtures
derrabus Oct 5, 2021
824711c
minor #99 Add return types to fixtures (derrabus)
derrabus Oct 6, 2021
b2bd334
Add PHP 8.1 to CI
derrabus Oct 6, 2021
df83a38
minor #98 Add PHP 8.1 to CI (derrabus)
derrabus Nov 1, 2021
c7a0be3
Allow Symfony 6
chalasr Nov 1, 2021
c81476c
feature #100 Allow Symfony 6 (chalasr)
chalasr Nov 5, 2021
c382d76
Release v2.1.2
chalasr Nov 5, 2021
22b37c8
minor #101 Release v2.1.2 (chalasr)
chalasr Nov 5, 2021
7f3b5c1
Fix for wrong type passed to moveTo()
lemon-juice Nov 16, 2021
316f5cb
bug #103 Fix for wrong type passed to moveTo() (lemon-juice)
derrabus Nov 16, 2021
808561a
Add missing .gitattributes
franmomu Mar 17, 2022
bdb2871
minor #104 Add missing .gitattributes (franmomu)
derrabus Mar 20, 2022
9a78a16
Ignore invalid HTTP headers when creating PSR7 objects
nicolas-grekas Sep 4, 2022
155a7ae
bug #107 Ignore invalid HTTP headers when creating PSR7 objects (nico…
nicolas-grekas Sep 5, 2022
d444f85
Update changelog
nicolas-grekas Sep 5, 2022
8c8a75b
perf: ensure timely flush stream buffers
jay-youngn Nov 22, 2022
4617ac3
bug #109 perf: ensure timely flush stream buffers (cidosx)
derrabus Nov 28, 2022
4592df2
Add PHP 8.2 to CI
derrabus Nov 28, 2022
a125b93
minor #110 Add PHP 8.2 to CI (derrabus)
derrabus Nov 28, 2022
5fa5f62
Adjustments for PHP CS Fixer 3
derrabus Nov 28, 2022
998d8d2
minor #111 Adjustments for PHP CS Fixer 3 (derrabus)
derrabus Nov 29, 2022
b360b35
Drop support for Symfony 4
derrabus Apr 20, 2023
694016e
feature #114 Drop support for Symfony 4 (derrabus)
derrabus Apr 20, 2023
ec83c1c
Bump psr/http-message version
erikn69 Apr 20, 2023
8a5748d
feature #113 Bump psr/http-message version (erikn69)
derrabus Apr 21, 2023
99ddcaa
Prepare the 2.2.0 release
derrabus Apr 21, 2023
7944831
cs fix
nicolas-grekas Apr 21, 2023
28a732c
minor #115 Prepare the 2.2.0 release (derrabus)
derrabus Apr 21, 2023
4fd4323
Add native types where possible
derrabus Jul 25, 2023
18c9e82
minor #118 Add native types where possible (derrabus)
derrabus Jul 25, 2023
3a8caad
Leverage `Request::getPayload()` to populate the parsed body of PSR-7…
AurelienPillevesse Jul 21, 2023
6b2f5df
feature #117 Leverage `Request::getPayload()` to populate the parsed …
derrabus Jul 25, 2023
0b54b85
Implement ValueResolverInterface
derrabus Jul 25, 2023
7eedd34
feature #119 Implement ValueResolverInterface (derrabus)
derrabus Jul 25, 2023
96acbfd
Prepare release 2.3.0
derrabus Jul 25, 2023
3c62b81
minor #120 Prepare release 2.3.0 (derrabus)
derrabus Jul 25, 2023
ef03b6d
Don't rely on Request::getPayload() to populate the parsed body
nicolas-grekas Jul 26, 2023
6410dda
bug #122 Don't rely on Request::getPayload() to populate the parsed b…
derrabus Jul 26, 2023
45d0349
Fix CS
derrabus Jul 26, 2023
581ca60
Prepare release 2.3.1
derrabus Jul 26, 2023
0c0323a
Add 'src/Symfony/Bridge/PsrHttpMessage/' from commit '581ca6067eb6264…
derrabus Jul 27, 2023
266c09f
[PsrHttpMessageBridge] Import the bridge into the monorepo
derrabus Jul 25, 2023
e40dd66
[PsrHttpMessageBridge] Patch return types and fix CS
derrabus Jul 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"psr/clock": "^1.0",
"psr/container": "^1.1|^2.0",
"psr/event-dispatcher": "^1.0",
"psr/http-message": "^1.0|^2.0",
"psr/link": "^1.1|^2.0",
"psr/log": "^1|^2|^3",
"symfony/contracts": "^2.5|^3.0",
Expand Down Expand Up @@ -94,6 +95,7 @@
"symfony/property-access": "self.version",
"symfony/property-info": "self.version",
"symfony/proxy-manager-bridge": "self.version",
"symfony/psr-http-message-bridge": "self.version",
"symfony/rate-limiter": "self.version",
"symfony/remote-event": "self.version",
"symfony/routing": "self.version",
Expand Down Expand Up @@ -182,6 +184,7 @@
"Symfony\\Bridge\\Doctrine\\": "src/Symfony/Bridge/Doctrine/",
"Symfony\\Bridge\\Monolog\\": "src/Symfony/Bridge/Monolog/",
"Symfony\\Bridge\\ProxyManager\\": "src/Symfony/Bridge/ProxyManager/",
"Symfony\\Bridge\\PsrHttpMessage\\": "src/Symfony/Bridge/PsrHttpMessage/",
"Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/",
"Symfony\\Bundle\\": "src/Symfony/Bundle/",
"Symfony\\Component\\": "src/Symfony/Component/"
Expand Down
4 changes: 4 additions & 0 deletions src/Symfony/Bridge/PsrHttpMessage/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/Tests export-ignore
/phpunit.xml.dist export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
4 changes: 4 additions & 0 deletions src/Symfony/Bridge/PsrHttpMessage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vendor/
composer.lock
phpunit.xml
/Tests/Fixtures/App/var
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Bridge\PsrHttpMessage\ArgumentValueResolver;

use Psr\Http\Message\MessageInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ServerRequestInterface;
use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
use Symfony\Component\HttpKernel\Controller\ValueResolverInterface as BaseValueResolverInterface;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;

/**
* Injects the RequestInterface, MessageInterface or ServerRequestInterface when requested.
*
* @author Iltar van der Berg <kjarli@gmail.com>
* @author Alexander M. Turek <me@derrabus.de>
*/
final class PsrServerRequestResolver implements ArgumentValueResolverInterface, ValueResolverInterface
{
private const SUPPORTED_TYPES = [
ServerRequestInterface::class => true,
RequestInterface::class => true,
MessageInterface::class => true,
];

private $httpMessageFactory;

public function __construct(HttpMessageFactoryInterface $httpMessageFactory)
{
$this->httpMessageFactory = $httpMessageFactory;
}

public function supports(Request $request, ArgumentMetadata $argument): bool
{
if ($this instanceof BaseValueResolverInterface) {
trigger_deprecation('symfony/psr-http-message-bridge', '2.3', 'Method "%s" is deprecated, call "resolve()" without calling "supports()" first.', __METHOD__);
}

return self::SUPPORTED_TYPES[$argument->getType()] ?? false;
}

public function resolve(Request $request, ArgumentMetadata $argument): \Traversable
{
if (!isset(self::SUPPORTED_TYPES[$argument->getType()])) {
return;
}

yield $this->httpMessageFactory->createRequest($request);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Bridge\PsrHttpMessage\ArgumentValueResolver;

use Symfony\Component\HttpKernel\Controller\ValueResolverInterface as BaseValueResolverInterface;

if (interface_exists(BaseValueResolverInterface::class)) {
/** @internal */
interface ValueResolverInterface extends BaseValueResolverInterface
{
}
} else {
/** @internal */
interface ValueResolverInterface
{
}
}
107 changes: 107 additions & 0 deletions src/Symfony/Bridge/PsrHttpMessage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
CHANGELOG
=========

6.4
---

* Import the bridge into the Symfony monorepo and synchronize releases

2.3.1
-----

* Don't rely on `Request::getPayload()` to populate the parsed body

2.3.0
-----

* Leverage `Request::getPayload()` to populate the parsed body of PSR-7 requests
* Implement `ValueResolverInterface` introduced with Symfony 6.2

2.2.0
-----

* Drop support for Symfony 4
* Bump minimum version of PHP to 7.2
* Support version 2 of the psr/http-message contracts

2.1.3
-----

* Ignore invalid HTTP headers when creating PSR7 objects
* Fix for wrong type passed to `moveTo()`

2.1.2
-----

* Allow Symfony 6

2.1.0
-----

* Added a `PsrResponseListener` to automatically convert PSR-7 responses returned by controllers
* Added a `PsrServerRequestResolver` that allows injecting PSR-7 request objects into controllers

2.0.2
-----

* Fix populating server params from URI in HttpFoundationFactory
* Create cookies as raw in HttpFoundationFactory
* Fix BinaryFileResponse with Content-Range PsrHttpFactory

2.0.1
-----

* Don't normalize query string in PsrHttpFactory
* Fix conversion for HTTPS requests
* Fix populating default port and headers in HttpFoundationFactory

2.0.0
-----

* Remove DiactorosFactory

1.3.0
-----

* Added support for streamed requests
* Added support for Symfony 5.0+
* Fixed bridging UploadedFile objects
* Bumped minimum version of Symfony to 4.4

1.2.0
-----

* Added new documentation links
* Bumped minimum version of PHP to 7.1
* Added support for streamed responses

1.1.2
-----

* Fixed createResponse

1.1.1
-----

* Deprecated DiactorosFactory, use PsrHttpFactory instead
* Removed triggering of deprecation

1.1.0
-----

* Added support for creating PSR-7 messages using PSR-17 factories

1.0.2
-----

* Fixed request target in PSR7 Request (mtibben)

1.0.1
-----

* Added support for Symfony 4 (dunglas)

1.0.0
-----

* Initial release
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Bridge\PsrHttpMessage\EventListener;

use Psr\Http\Message\ResponseInterface;
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
use Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ViewEvent;
use Symfony\Component\HttpKernel\KernelEvents;

/**
* Converts PSR-7 Response to HttpFoundation Response using the bridge.
*
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Alexander M. Turek <me@derrabus.de>
*/
final class PsrResponseListener implements EventSubscriberInterface
{
private $httpFoundationFactory;

public function __construct(HttpFoundationFactoryInterface $httpFoundationFactory = null)
{
$this->httpFoundationFactory = $httpFoundationFactory ?? new HttpFoundationFactory();
}

/**
* Do the conversion if applicable and update the response of the event.
*/
public function onKernelView(ViewEvent $event): void
{
$controllerResult = $event->getControllerResult();

if (!$controllerResult instanceof ResponseInterface) {
return;
}

$event->setResponse($this->httpFoundationFactory->createResponse($controllerResult));
}

public static function getSubscribedEvents(): array
{
return [
KernelEvents::VIEW => 'onKernelView',
];
}
}
Loading