schranz-php-recipes / symfony-recipes-php

Provides https://github.com/symfony/recipes as PHP instead of YAML configs.
MIT License
13 stars 3 forks source link

Update recipes 2024-01-03 #71

Closed symfony-php-recipes-bot closed 10 months ago

symfony-php-recipes-bot commented 10 months ago
Q A
License MIT

The Symfony Recipes changed with version . This PR contains the new definition for recipes.

github-actions[bot] commented 10 months ago

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/schranz-php-recipes/symfony-recipes-php/flex/pull-71/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/schranz-php-recipes/symfony-recipes-php/flex/pull-71/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 diff --git a/symfony/web-profiler-bundle/3.3/config/packages/dev/web_profiler.php b/symfony/web-profiler-bundle/3.3/config/packages/dev/web_profiler.php deleted file mode 100644 index dea1d50..0000000 --- a/symfony/web-profiler-bundle/3.3/config/packages/dev/web_profiler.php +++ /dev/null @@ -1,18 +0,0 @@ -extension('web_profiler', [ - 'toolbar' => true, - 'intercept_redirects' => false, - ]); - - $containerConfigurator->extension('framework', [ - 'profiler' => [ - 'only_exceptions' => false, - ], - ]); -}; diff --git a/symfony/web-profiler-bundle/3.3/config/packages/test/web_profiler.php b/symfony/web-profiler-bundle/3.3/config/packages/test/web_profiler.php deleted file mode 100644 index ed8f9a3..0000000 --- a/symfony/web-profiler-bundle/3.3/config/packages/test/web_profiler.php +++ /dev/null @@ -1,11 +0,0 @@ -extension('web_profiler', ['toolbar' => false, 'intercept_redirects' => false]); - - $containerConfigurator->extension('framework', ['profiler' => ['collect' => false]]); -}; diff --git a/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.php b/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.php new file mode 100644 index 0000000..4172ffd --- /dev/null +++ b/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.php @@ -0,0 +1,30 @@ +env() === 'dev') { + $containerConfigurator->extension('web_profiler', [ + 'toolbar' => true, + 'intercept_redirects' => false, + ]); + $containerConfigurator->extension('framework', [ + 'profiler' => [ + 'only_exceptions' => false, + ], + ]); + } + if ($containerConfigurator->env() === 'test') { + $containerConfigurator->extension('web_profiler', [ + 'toolbar' => false, + 'intercept_redirects' => false, + ]); + $containerConfigurator->extension('framework', [ + 'profiler' => [ + 'collect' => false, + ], + ]); + } +}; diff --git a/symfony/web-profiler-bundle/3.3/config/routes/dev/web_profiler.php b/symfony/web-profiler-bundle/3.3/config/routes/dev/web_profiler.php deleted file mode 100644 index 0ee088d..0000000 --- a/symfony/web-profiler-bundle/3.3/config/routes/dev/web_profiler.php +++ /dev/null @@ -1,13 +0,0 @@ -import('@WebProfilerBundle/Resources/config/routing/wdt.xml') - ->prefix('/_wdt'); - - $routingConfigurator->import('@WebProfilerBundle/Resources/config/routing/profiler.xml') - ->prefix('/_profiler'); -}; diff --git a/symfony/web-profiler-bundle/5.3/config/routes/web_profiler.php b/symfony/web-profiler-bundle/5.3/config/routes/web_profiler.php new file mode 100644 index 0000000..fe346be --- /dev/null +++ b/symfony/web-profiler-bundle/5.3/config/routes/web_profiler.php @@ -0,0 +1,14 @@ +env() === 'dev') { + $routingConfigurator->import('@WebProfilerBundle/Resources/config/routing/wdt.xml') + ->prefix('/_wdt'); + $routingConfigurator->import('@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 diff --git a/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.php b/symfony/web-profiler-bundle/6.1/config/packages/web_profiler.php index 4172ffd..3eecf1f 100644 --- a/symfony/web-profiler-bundle/5.3/config/packages/web_profiler.php +++ b/symfony/web-profiler-bundle/6.1/config/packages/web_profiler.php @@ -13,6 +13,7 @@ return static function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->extension('framework', [ 'profiler' => [ 'only_exceptions' => false, + 'collect_serializer_data' => true, ], ]); } 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" } } ```