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-11-01 #116

Closed symfony-php-recipes-bot closed 8 hours ago

symfony-php-recipes-bot commented 9 hours ago
Q A
License MIT

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

github-actions[bot] commented 9 hours 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-116/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/schranz-php-recipes/symfony-recipes-php/flex/pull-116/index.json
  2. Install the package(s) related to this recipe:

    composer req 'symfony/flex:^1.16'
    composer req 'zenstruck/foundry:^2.0'
  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.

zenstruck/foundry

1.9 vs 1.10 ```diff diff --git a/zenstruck/foundry/1.9/config/packages/dev/zenstruck_foundry.php b/zenstruck/foundry/1.9/config/packages/dev/zenstruck_foundry.php deleted file mode 100644 index a17b790..0000000 --- a/zenstruck/foundry/1.9/config/packages/dev/zenstruck_foundry.php +++ /dev/null @@ -1,11 +0,0 @@ -extension('zenstruck_foundry', [ - 'auto_refresh_proxies' => true, - ]); -}; diff --git a/zenstruck/foundry/1.9/config/packages/test/zenstruck_foundry.php b/zenstruck/foundry/1.9/config/packages/test/zenstruck_foundry.php deleted file mode 100644 index 1ca5a4f..0000000 --- a/zenstruck/foundry/1.9/config/packages/test/zenstruck_foundry.php +++ /dev/null @@ -1,9 +0,0 @@ -import(__DIR__.'/../dev/zenstruck_foundry.php'); -}; diff --git a/zenstruck/foundry/1.10/config/packages/zenstruck_foundry.php b/zenstruck/foundry/1.10/config/packages/zenstruck_foundry.php new file mode 100644 index 0000000..c0c2fcd --- /dev/null +++ b/zenstruck/foundry/1.10/config/packages/zenstruck_foundry.php @@ -0,0 +1,18 @@ +env() === 'dev') { + $containerConfigurator->extension('zenstruck_foundry', [ + 'auto_refresh_proxies' => true, + ]); + } + if ($containerConfigurator->env() === 'test') { + $containerConfigurator->extension('zenstruck_foundry', [ + 'auto_refresh_proxies' => true, + ]); + } +}; diff --git a/zenstruck/foundry/1.9/manifest.json b/zenstruck/foundry/1.10/manifest.json index 9fe1ceb..050fabb 100644 --- a/zenstruck/foundry/1.9/manifest.json +++ b/zenstruck/foundry/1.10/manifest.json @@ -4,5 +4,9 @@ }, "bundles": { "Zenstruck\\Foundry\\ZenstruckFoundryBundle": ["dev", "test"] - } + }, + "conflict": { + "symfony/framework-bundle": "<5.3" + }, + "aliases": ["foundry"] } ```
1.10 vs 2.0 ```diff diff --git a/zenstruck/foundry/1.10/config/packages/zenstruck_foundry.php b/zenstruck/foundry/2.0/config/packages/zenstruck_foundry.php index c0c2fcd..c5c6f64 100644 --- a/zenstruck/foundry/1.10/config/packages/zenstruck_foundry.php +++ b/zenstruck/foundry/2.0/config/packages/zenstruck_foundry.php @@ -6,13 +6,9 @@ use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigura return static function (ContainerConfigurator $containerConfigurator): void { if ($containerConfigurator->env() === 'dev') { - $containerConfigurator->extension('zenstruck_foundry', [ - 'auto_refresh_proxies' => true, - ]); + $containerConfigurator->extension('zenstruck_foundry', null); } if ($containerConfigurator->env() === 'test') { - $containerConfigurator->extension('zenstruck_foundry', [ - 'auto_refresh_proxies' => true, - ]); + $containerConfigurator->extension('zenstruck_foundry', null); } }; ```