Skip to content
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

Support Symfony 7 #130

Merged
merged 3 commits into from
Oct 28, 2023
Merged

Support Symfony 7 #130

merged 3 commits into from
Oct 28, 2023

Conversation

back-2-95
Copy link
Contributor

@back-2-95 back-2-95 commented Oct 28, 2023

  • Allow Symfony 7.x packages on those which already have 7.0 beta1 releases

Will fix #129

Notes

Testing

This is how I got this for existing Symfony 6.3 project:

diff --git a/composer.json b/composer.json
index 4c06d27..8401f28 100644
--- a/composer.json
+++ b/composer.json
@@ -3,37 +3,36 @@
     "description": "Symfony learning adventure",
     "type": "project",
     "license": "proprietary",
-    "minimum-stability": "stable",
+    "minimum-stability": "dev",
     "prefer-stable": true,
     "require": {
         "php": "^8.2",
         "ext-ctype": "*",
         "ext-iconv": "*",
-        "doctrine/doctrine-bundle": "^2.10",
-        "doctrine/doctrine-migrations-bundle": "^3.2",
+        "doctrine/doctrine-bundle": "2.11.x-dev",
+        "doctrine/doctrine-migrations-bundle": "3.3.x-dev",
         "doctrine/orm": "^2.16",
-        "dunglas/doctrine-json-odm": "^1.3",
-        "symfony/console": "6.3.*",
-        "symfony/dotenv": "6.3.*",
-        "symfony/filesystem": "6.3.*",
+        "dunglas/doctrine-json-odm": "dev-support-symfony-7",
+        "symfony/console": "7.0.*",
+        "symfony/dotenv": "7.0.*",
+        "symfony/filesystem": "7.0.*",
         "symfony/flex": "^2",
-        "symfony/form": "6.3.*",
-        "symfony/framework-bundle": "6.3.*",
-        "symfony/http-client": "6.3.*",
+        "symfony/form": "7.0.*",
+        "symfony/framework-bundle": "7.0.*",
+        "symfony/http-client": "7.0.*",
         "symfony/monolog-bundle": "^3.8",
-        "symfony/runtime": "6.3.*",
-        "symfony/security-csrf": "6.3.*",
-        "symfony/twig-bundle": "6.3.*",
-        "symfony/validator": "6.3.*",
-        "symfony/webhook": "6.3.*",
+        "symfony/runtime": "7.0.*",
+        "symfony/security-csrf": "7.0.*",
+        "symfony/twig-bundle": "7.0.*",
+        "symfony/validator": "7.0.*",
+        "symfony/webhook": "7.0.*",
         "symfony/webpack-encore-bundle": "^2.1",
-        "symfony/yaml": "6.3.*"
+        "symfony/yaml": "7.0.*"
     },
     "require-dev": {
-        "doctrine/doctrine-fixtures-bundle": "^3.4",
-        "friendsofphp/php-cs-fixer": "^3.34",
+        "doctrine/doctrine-fixtures-bundle": "3.5.x-dev",
         "symfony/maker-bundle": "^1.51",
-        "symfony/web-profiler-bundle": "6.3.*"
+        "symfony/web-profiler-bundle": "7.0.*"
     },
     "config": {
         "allow-plugins": {
@@ -80,8 +79,14 @@
     "extra": {
         "symfony": {
             "allow-contrib": false,
-            "require": "6.3.*",
+            "require": "7.0.*",
             "docker": true
         }
-    }
+    },
+    "repositories": [
+        {
+            "type": "vcs",
+            "url": "https://github.com/back-2-95/doctrine-json-odm"
+        }
+    ]
 }

@back-2-95 back-2-95 mentioned this pull request Oct 28, 2023
@dunglas dunglas merged commit 6a1f189 into dunglas:main Oct 28, 2023
9 checks passed
@dunglas
Copy link
Owner

dunglas commented Oct 28, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Symfony 7
2 participants