Skip to content

Commit

Permalink
Add support for FosHttpCache 3.0 and FosHttpCacheBundle 3.0 (sulu#7452)
Browse files Browse the repository at this point in the history
Add support for FosHttpCache 3.0
  • Loading branch information
alexander-schranz authored Jun 10, 2024
1 parent a576711 commit 1dc546b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"ext-dom": "*",
"ext-json": "*",
"ext-simplexml": "*",
"composer-runtime-api": "^2.0",
"composer/package-versions-deprecated": "^1.8",
"contao/imagine-svg": "^1.0",
"doctrine/annotations": "^1.2 || ^2.0",
Expand All @@ -44,8 +45,8 @@
"doctrine/phpcr-bundle": "^2.2 || ^3.0",
"dragonmantank/cron-expression": "^1.1 || ^2.0 || ^3.0",
"friendsofphp/proxy-manager-lts": "^1.0",
"friendsofsymfony/http-cache": "^2.10",
"friendsofsymfony/http-cache-bundle": "^2.10.1",
"friendsofsymfony/http-cache": "^2.10 || ^3.0",
"friendsofsymfony/http-cache-bundle": "^2.10.1 || ^3.0",
"friendsofsymfony/jsrouting-bundle": "^2.7 || ^3.0",
"friendsofsymfony/rest-bundle": "^3.1",
"gedmo/doctrine-extensions": "^3.0.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function prepend(ContainerBuilder $container)
],
];

if (!$container->hasExtension('sensio_framework_extra')) {
if (!$container->hasExtension('sensio_framework_extra')
&& \version_compare(\Composer\InstalledVersions::getVersion('friendsofsymfony/http-cache-bundle') ?? '999.999.999', '3.0.0', '<')
) {
$fosHttpCacheConfig['tags'] = [
'annotations' => [
'enabled' => false,
Expand Down

0 comments on commit 1dc546b

Please sign in to comment.