8000 [web-profiler-bundle] Enable serializer data collector on 6.1 by chalasr · Pull Request #1095 · symfony/recipes · GitHub
[go: up one dir, main page]

Skip to content

[web-profiler-bundle] Enable serializer data collector on 6.1 #1095

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 1 commit into from
Jun 10, 2022

Conversation

chalasr
Copy link
Member
@chalasr chalasr commented Jun 9, 2022
Q A
License MIT
Doc issue/PR -

See symfony/symfony#46625 for background.

@nicolas-grekas nicolas-grekas force-pushed the profile-serializer-61 branch from 751ea55 to 1f3abed Compare June 10, 2022 13:06
@symfony-recipes-bot symfony-recipes-bot merged commit c17973f into symfony:main Jun 10, 2022
@github-actions
Copy link

Thanks for the PR 😍

How to test these changes in your application

  1. Define the SYMFONY_ENDPOINT environment variable:

    # On Unix-like (BSD, Linux and macOS)
    export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes/flex/pull-1095/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes/flex/pull-1095/index.json
  2. Install the package(s) related to this recipe:

    composer req 'symfony/flex:^1.16'
    composer req 'symfony/web-profiler-bundle:^6.1'
  3. Don't forget to unset the SYMFONY_ENDPOINT environment variable when done:

    # On Unix-like (BSD, Linux and macOS)
    unset SYMFONY_ENDPOINT
    # On Windows
    SET SYMFONY_ENDPOINT=

Diff between recipe versions

In order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes.
I'm going keep this comment up to date with any updates of the attached patch.

symfony/web-profiler-bundle

3.3 vs 5.3
diff --git a/symfony/web-profiler-bundle/3.3/config/packages/dev/web_profiler.yaml b/symfony/web-profiler-bundle/3.3/config/packages/dev/web_profiler.yaml
deleted file mode 100644
index e92166a..0000000
--- a/symfony/web-profiler-bundle/3.3/config/packages/dev/web_profiler.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-web_profiler:
-    toolbar: true
-    intercept_redirects: false
-
-framework:
-    profiler: { only_exceptions: false }
diff --git a/symfony/web-profiler-bundle/3.3/config/packages/test/web_profiler.yaml b/symfony/web-profiler-bundle/3.3/config/packages/test/web_profiler.yaml
deleted file mode 100644
index 03752de..0000000
--- a/symfony/web-profiler-bundle/3.3/config/packages/test/web_profiler.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-web_profiler:
-    toolbar: false
-    intercept_redirects: false
-
-framework:
-    profiler: { collect: false }
diff --git a/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.yaml b/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.yaml
new file mode 100644
index 0000000..17893da
--- /dev/null
+++ b/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.yaml
@@ -0,0 +1,15 @@
+when@dev:
+    web_profiler:
+        toolbar: true
+        intercept_redirects: false
+
+    framework:
+        profiler: { only_exceptions: false }
+
+when@test:
+    web_profiler:
+        toolbar: false
+        intercept_redirects: false
+
+    framework:
+        profiler: { collect: false }
diff --git a/symfony/web-profiler-bundle/3.3/config/routes/dev/web_profiler.yaml b/symfony/web-profiler-bundle/3.3/config/routes/dev/web_profiler.yaml
deleted file mode 100644
index c82beff..0000000
--- a/symfony/web-profiler-bundle/3.3/config/routes/dev/web_profiler.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-web_profiler_wdt:
-    resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
-    prefix: /_wdt
-
-web_profiler_profiler:
-    resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
-    prefix: /_profiler
diff --git a/symfony/web-profiler-bundle/5.3/config/routes/web_profiler.yaml b/symfony/web-profiler-bundle/5.3/config/routes/web_profiler.yaml
new file mode 100644
index 0000000..8d85319
--- /dev/null
+++ b/symfony/web-profiler-bundle/5.3/config/routes/web_profiler.yaml
@@ -0,0 +1,8 @@
+when@dev:
+    web_profiler_wdt:
+        resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
+        prefix: /_wdt
+
+    web_profiler_profiler:
+        resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
+        prefix: /_profiler
diff --git a/symfony/web-profiler-bundle/3.3/manifest.json b/symfony/web-profiler-bundle/5.3/manifest.json
index cb84a24..be74128 100644
--- a/symfony/web-profiler-bundle/3.3/manifest.json
+++ b/symfony/web-profiler-bundle/5.3/manifest.json
@@ -4,5 +4,8 @@
     },
     "copy-from-recipe": {
         "config/": "%CONFIG_DIR%/"
+    },
+    "conflict": {
+        "symfony/framework-bundle": "<5.3"
     }
 }
5.3 vs 6.1
diff --git a/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.yaml b/symfony/web-profiler-bundle/6.1/config/packages/web_profiler.yaml
index 17893da..b946111 100644
--- a/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.yaml
+++ b/symfony/web-profiler-bundle/6.1/config/packages/web_profiler.yaml
@@ -4,7 +4,9 @@ when@dev:
         intercept_redirects: false
 
     framework:
-        profiler: { only_exceptions: false }
+        profiler:
+            only_exceptions: false
+            collect_serializer_data: true
 
 when@test:
     web_profiler:
diff --git a/symfony/web-profiler-bundle/5.3/manifest.json b/symfony/web-profiler-bundle/6.1/manifest.json
index be74128..fceb97f 100644
--- a/symfony/web-profiler-bundle/5.3/manifest.json
+++ b/symfony/web-profiler-bundle/6.1/manifest.json
@@ -6,6 +6,6 @@
         "config/": "%CONFIG_DIR%/"
     },
     "conflict": {
-        "symfony/framework-bundle": "<5.3"
+        "symfony/framework-bundle": "<6.1"
     }
 }

@chalasr chalasr deleted the profile-serializer-61 branch June 11, 2022 12:15
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.

3 participants
0