From 16a1f9df7daf5a136035cce5da952b08c67f3aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20G=C3=BCnther?= Date: Fri, 20 Aug 2021 12:10:33 +0200 Subject: [PATCH 1/2] TASK: Adjust version constraints As flow version seven has PSR-15 middlewares, this package is not working anymore. Therefore, this change will limit the usage to version 4.x, 5.x and 6.x of neos/flow. --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a513d21..c44e6fc 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "CORS HTTP component (middleware) for Neos Flow", "license": "LGPL-3.0+", "require": { - "neos/flow": "*" + "neos/flow": "^4.0 || ^5.0 || ^6.0" }, "autoload": { "psr-4": { @@ -16,4 +16,4 @@ "Flowpack\\Cors\\Tests\\": "Tests" } } -} \ No newline at end of file +} From 5e5326eb4ef48ae46e2071ef1ba4789e2fe60aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20G=C3=BCnther?= Date: Fri, 20 Aug 2021 12:20:10 +0200 Subject: [PATCH 2/2] TASK: Add disclamer to README As version 7 of flow is not working with this package anymore, we should inform the users in the README. --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index db3f0ac..bae58b8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,17 @@ Fully featured CORS HTTP component (a.k.a. middleware) for Flow framework to allow "cross-domain" requests. + +``` +⚡️ Warning + +This package is not working with version 7.0 and higher of the Neos/Flow framework. +In version 7.0 we introduced PSR-15 Middlewares and it is possible to use other PHP libraries instead. + +For instance https://github.com/tuupola/cors-middleware +``` + + ## Background This package is a implementation of a CORS middleware for Cross-Origin Resource Sharing (see https://developer.mozilla.org/en-US/docs/Glossary/CORS). @@ -102,4 +113,4 @@ Flowpack: # Debugging flag adds additional logging to System.log to debug server-side CORS issues. # debug: false -``` \ No newline at end of file +```