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 2023-07-19 #44

Closed symfony-php-recipes-bot closed 1 year ago

symfony-php-recipes-bot commented 1 year ago
Q A
License MIT

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

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

    composer req 'symfony/flex:^1.16'
    composer req 'doctrine/doctrine-bundle:^2.10' 'phpunit/phpunit:^9.6' 'symfony/all-my-sms-notifier:^5.3' 'symfony/allmysms-notifier:^5.3' 'symfony/amazon-sns-notifier:^5.4' 'symfony/bandwidth-notifier:^6.3' 'symfony/brevo-mailer:^6.4' 'symfony/brevo-notifier:^6.4' 'symfony/chatwork-notifier:^6.2' 'symfony/click-send-notifier:^6.3' 'symfony/clickatell-notifier:^5.3' 'symfony/crowdin-translation-provider:^5.3' 'symfony/discord-notifier:^5.2' 'symfony/engagespot-notifier:^6.1' 'symfony/esendex-notifier:^5.2' 'symfony/expo-notifier:^5.4' 'symfony/fake-chat-notifier:^5.3' 'symfony/fake-sms-notifier:^5.3' 'symfony/firebase-notifier:^5.1' 'symfony/forty-six-elks-notifier:^6.1' 'symfony/free-mobile-notifier:^5.1' 'symfony/gateway-api-notifier:^5.3' 'symfony/gatewayapi-notifier:^5.3' 'symfony/gitter-notifier:^5.3' 'symfony/google-chat-notifier:^5.3' 'symfony/infobip-notifier:^5.2' 'symfony/iqsms-notifier:^5.3' 'symfony/isendpro-notifier:^6.3' 'symfony/kaz-info-teh-notifier:^6.1' 'symfony/light-sms-notifier:^5.3' 'symfony/line-notify-notifier:^6.3' 'symfony/linked-in-notifier:^5.2' 'symfony/loco-translation-provider:^5.3' 'symfony/lokalise-translation-provider:^5.3' 'symfony/mail-pace-mailer:^6.2' 'symfony/mailer-send-mailer:^6.3' 'symfony/mailjet-notifier:^5.4' 'symfony/mastodon-notifier:^6.3' 'symfony/mattermost-notifier:^5.1' 'symfony/mercure-notifier:^5.3' 'symfony/message-bird-notifier:^5.3' 'symfony/message-media-notifier:^5.4' 'symfony/microsoft-teams-notifier:^5.3' 'symfony/mobyt-notifier:^5.2' 'symfony/nexmo-notifier:^5.0' 'symfony/notifier:^5.0' 'symfony/novu-notifier:^6.4' 'symfony/ntfy-notifier:^6.4' 'symfony/octopush-notifier:^5.3' 'symfony/one-signal-notifier:^5.4' 'symfony/orange-sms-notifier:^6.1' 'symfony/ovh-cloud-notifier:^5.1' 'symfony/pager-duty-notifier:^6.3' 'symfony/panther:^1.0' 'symfony/phpunit-bridge:^6.3' 'symfony/plivo-notifier:^6.3' 'symfony/postmark-mailer:^4.4' 'symfony/pushover-notifier:^6.3' 'symfony/redlink-notifier:^6.4' 'symfony/ring-central-notifier:^6.3' 'symfony/rocket-chat-notifier:^5.1' 'symfony/sendberry-notifier:^6.1' 'symfony/sendgrid-mailer:^4.4' 'symfony/sendinblue-notifier:^5.2' 'symfony/simple-textin-notifier:^6.3' 'symfony/sinch-notifier:^5.1' 'symfony/slack-notifier:^5.2' 'symfony/sms-biuras-notifier:^5.3' 'symfony/sms-factor-notifier:^6.2' 'symfony/sms77-notifier:^5.4' 'symfony/smsapi-notifier:^5.2' 'symfony/smsc-notifier:^5.4' 'symfony/smsmode-notifier:^6.3' 'symfony/spot-hit-notifier:^5.3' 'symfony/telegram-notifier:^5.0' 'symfony/telnyx-notifier:^5.4' 'symfony/termii-notifier:^6.3' 'symfony/turbo-sms-notifier:^5.4' 'symfony/twilio-notifier:^5.0' 'symfony/twitter-notifier:^6.3' 'symfony/ux-react:^2.9' 'symfony/ux-svelte:^2.9' 'symfony/ux-vue:^2.9' 'symfony/vonage-notifier:^5.4' 'symfony/yunpian-notifier:^5.4' 'symfony/zendesk-notifier:^6.2' 'symfony/zulip-notifier:^5.2'
  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.

doctrine/doctrine-bundle

1.6 vs 1.12 ```diff diff --git a/doctrine/doctrine-bundle/1.6/config/packages/doctrine.php b/doctrine/doctrine-bundle/1.12/config/packages/doctrine.php index c93732f..aa66d26 100644 --- a/doctrine/doctrine-bundle/1.6/config/packages/doctrine.php +++ b/doctrine/doctrine-bundle/1.12/config/packages/doctrine.php @@ -15,7 +15,7 @@ return static function (ContainerConfigurator $containerConfigurator): void { ], 'orm' => [ 'auto_generate_proxy_classes' => true, - 'naming_strategy' => 'doctrine.orm.naming_strategy.underscore', + 'naming_strategy' => 'doctrine.orm.naming_strategy.underscore_number_aware', 'auto_mapping' => true, 'mappings' => [ 'App' => [ diff --git a/doctrine/doctrine-bundle/1.6/config/packages/prod/doctrine.php b/doctrine/doctrine-bundle/1.12/config/packages/prod/doctrine.php index a6dfabd..dd81ae3 100644 --- a/doctrine/doctrine-bundle/1.6/config/packages/prod/doctrine.php +++ b/doctrine/doctrine-bundle/1.12/config/packages/prod/doctrine.php @@ -3,37 +3,26 @@ declare(strict_types=1); use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; -use function Symfony\Component\DependencyInjection\Loader\Configurator\service; return static function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->extension('doctrine', [ 'orm' => [ 'auto_generate_proxy_classes' => false, 'metadata_cache_driver' => [ - 'type' => 'service', - 'id' => 'doctrine.system_cache_provider', + 'type' => 'pool', + 'pool' => 'doctrine.system_cache_pool', ], 'query_cache_driver' => [ - 'type' => 'service', - 'id' => 'doctrine.system_cache_provider', + 'type' => 'pool', + 'pool' => 'doctrine.system_cache_pool', ], 'result_cache_driver' => [ - 'type' => 'service', - 'id' => 'doctrine.result_cache_provider', + 'type' => 'pool', + 'pool' => 'doctrine.result_cache_pool', ], ], ]); - $services = $containerConfigurator->services(); - - $services->set('doctrine.result_cache_provider', 'Symfony\Component\Cache\DoctrineProvider') - ->private() - ->args([service('doctrine.result_cache_pool')]); - - $services->set('doctrine.system_cache_provider', 'Symfony\Component\Cache\DoctrineProvider') - ->private() - ->args([service('doctrine.system_cache_pool')]); - $containerConfigurator->extension('framework', [ 'cache' => [ 'pools' => [ diff --git a/doctrine/doctrine-bundle/1.6/manifest.json b/doctrine/doctrine-bundle/1.12/manifest.json index dca9096..754bce8 100644 --- a/doctrine/doctrine-bundle/1.6/manifest.json +++ b/doctrine/doctrine-bundle/1.12/manifest.json @@ -11,8 +11,8 @@ "#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml", "#3": "", "#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"", - "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8\"", - "DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8" + "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/db_name?serverVersion=8\"", + "DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/db_name?serverVersion=15&charset=utf8" }, "dockerfile": [ "RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\", ```
1.12 vs 2.0 ```diff diff --git a/doctrine/doctrine-bundle/1.12/config/packages/doctrine.php b/doctrine/doctrine-bundle/2.0/config/packages/doctrine.php index aa66d26..e210ec1 100644 --- a/doctrine/doctrine-bundle/1.12/config/packages/doctrine.php +++ b/doctrine/doctrine-bundle/2.0/config/packages/doctrine.php @@ -8,10 +8,6 @@ return static function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->extension('doctrine', [ 'dbal' => [ 'url' => '%env(resolve:DATABASE_URL)%', - 'charset' => 'utf8mb4', - 'default_table_options' => [ - 'collate' => 'utf8mb4_unicode_ci', - ], ], 'orm' => [ 'auto_generate_proxy_classes' => true, diff --git a/doctrine/doctrine-bundle/1.12/manifest.json b/doctrine/doctrine-bundle/2.0/manifest.json index 754bce8..dca9096 100644 --- a/doctrine/doctrine-bundle/1.12/manifest.json +++ b/doctrine/doctrine-bundle/2.0/manifest.json @@ -11,8 +11,8 @@ "#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml", "#3": "", "#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"", - "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/db_name?serverVersion=8\"", - "DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/db_name?serverVersion=15&charset=utf8" + "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8\"", + "DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8" }, "dockerfile": [ "RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\", ```
2.0 vs 2.3 ```diff diff --git a/doctrine/doctrine-bundle/2.0/config/packages/prod/doctrine.php b/doctrine/doctrine-bundle/2.3/config/packages/prod/doctrine.php index dd81ae3..20e0bf6 100644 --- a/doctrine/doctrine-bundle/2.0/config/packages/prod/doctrine.php +++ b/doctrine/doctrine-bundle/2.3/config/packages/prod/doctrine.php @@ -8,10 +8,6 @@ return static function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->extension('doctrine', [ 'orm' => [ 'auto_generate_proxy_classes' => false, - 'metadata_cache_driver' => [ - 'type' => 'pool', - 'pool' => 'doctrine.system_cache_pool', - ], 'query_cache_driver' => [ 'type' => 'pool', 'pool' => 'doctrine.system_cache_pool', diff --git a/doctrine/doctrine-bundle/2.3/config/packages/test/doctrine.php b/doctrine/doctrine-bundle/2.3/config/packages/test/doctrine.php new file mode 100644 index 0000000..d1f2212 --- /dev/null +++ b/doctrine/doctrine-bundle/2.3/config/packages/test/doctrine.php @@ -0,0 +1,13 @@ +extension('doctrine', [ + 'dbal' => [ + 'dbname' => 'main_test%env(default::TEST_TOKEN)%', + ], + ]); +}; diff --git a/doctrine/doctrine-bundle/2.0/manifest.json b/doctrine/doctrine-bundle/2.3/manifest.json index dca9096..f673cbc 100644 --- a/doctrine/doctrine-bundle/2.0/manifest.json +++ b/doctrine/doctrine-bundle/2.3/manifest.json @@ -11,13 +11,13 @@ "#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml", "#3": "", "#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"", - "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8\"", + "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8&charset=utf8mb4\"", "DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8" }, "dockerfile": [ - "RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\", - "\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\", - "\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\", + "RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\", + "\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\", + "\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\", "\tapk del .pgsql-deps" ], "docker-compose": { ```
2.3 vs 2.4 ```diff diff --git a/doctrine/doctrine-bundle/2.3/config/packages/doctrine.php b/doctrine/doctrine-bundle/2.4/config/packages/doctrine.php index e210ec1..401ce10 100644 --- a/doctrine/doctrine-bundle/2.3/config/packages/doctrine.php +++ b/doctrine/doctrine-bundle/2.4/config/packages/doctrine.php @@ -16,7 +16,6 @@ return static function (ContainerConfigurator $containerConfigurator): void { 'mappings' => [ 'App' => [ 'is_bundle' => false, - 'type' => 'annotation', 'dir' => '%kernel.project_dir%/src/Entity', 'prefix' => 'App\Entity', 'alias' => 'App', @@ -24,4 +23,39 @@ return static function (ContainerConfigurator $containerConfigurator): void { ], ], ]); + if ($containerConfigurator->env() === 'test') { + $containerConfigurator->extension('doctrine', [ + 'dbal' => [ + 'dbname_suffix' => '_test%env(default::TEST_TOKEN)%', + ], + ]); + } + if ($containerConfigurator->env() === 'prod') { + $containerConfigurator->extension('doctrine', [ + 'orm' => [ + 'auto_generate_proxy_classes' => false, + 'proxy_dir' => '%kernel.build_dir%/doctrine/orm/Proxies', + 'query_cache_driver' => [ + 'type' => 'pool', + 'pool' => 'doctrine.system_cache_pool', + ], + 'result_cache_driver' => [ + 'type' => 'pool', + 'pool' => 'doctrine.result_cache_pool', + ], + ], + ]); + $containerConfigurator->extension('framework', [ + 'cache' => [ + 'pools' => [ + 'doctrine.result_cache_pool' => [ + 'adapter' => 'cache.app', + ], + 'doctrine.system_cache_pool' => [ + 'adapter' => 'cache.system', + ], + ], + ], + ]); + } }; diff --git a/doctrine/doctrine-bundle/2.3/config/packages/prod/doctrine.php b/doctrine/doctrine-bundle/2.3/config/packages/prod/doctrine.php deleted file mode 100644 index 20e0bf6..0000000 --- a/doctrine/doctrine-bundle/2.3/config/packages/prod/doctrine.php +++ /dev/null @@ -1,34 +0,0 @@ -extension('doctrine', [ - 'orm' => [ - 'auto_generate_proxy_classes' => false, - 'query_cache_driver' => [ - 'type' => 'pool', - 'pool' => 'doctrine.system_cache_pool', - ], - 'result_cache_driver' => [ - 'type' => 'pool', - 'pool' => 'doctrine.result_cache_pool', - ], - ], - ]); - - $containerConfigurator->extension('framework', [ - 'cache' => [ - 'pools' => [ - 'doctrine.result_cache_pool' => [ - 'adapter' => 'cache.app', - ], - 'doctrine.system_cache_pool' => [ - 'adapter' => 'cache.system', - ], - ], - ], - ]); -}; diff --git a/doctrine/doctrine-bundle/2.3/config/packages/test/doctrine.php b/doctrine/doctrine-bundle/2.3/config/packages/test/doctrine.php deleted file mode 100644 index d1f2212..0000000 --- a/doctrine/doctrine-bundle/2.3/config/packages/test/doctrine.php +++ /dev/null @@ -1,13 +0,0 @@ -extension('doctrine', [ - 'dbal' => [ - 'dbname' => 'main_test%env(default::TEST_TOKEN)%', - ], - ]); -}; diff --git a/doctrine/doctrine-bundle/2.3/manifest.json b/doctrine/doctrine-bundle/2.4/manifest.json index f673cbc..472f48f 100644 --- a/doctrine/doctrine-bundle/2.3/manifest.json +++ b/doctrine/doctrine-bundle/2.4/manifest.json @@ -44,5 +44,8 @@ " - \"5432\"" ] } + }, + "conflict": { + "symfony/framework-bundle": "<5.3" } } ```
2.4 vs 2.8 ```diff diff --git a/doctrine/doctrine-bundle/2.4/config/packages/doctrine.php b/doctrine/doctrine-bundle/2.8/config/packages/doctrine.php index 401ce10..d625cfa 100644 --- a/doctrine/doctrine-bundle/2.4/config/packages/doctrine.php +++ b/doctrine/doctrine-bundle/2.8/config/packages/doctrine.php @@ -11,6 +11,7 @@ return static function (ContainerConfigurator $containerConfigurator): void { ], 'orm' => [ 'auto_generate_proxy_classes' => true, + 'enable_lazy_ghost_objects' => true, 'naming_strategy' => 'doctrine.orm.naming_strategy.underscore_number_aware', 'auto_mapping' => true, 'mappings' => [ diff --git a/doctrine/doctrine-bundle/2.4/manifest.json b/doctrine/doctrine-bundle/2.8/manifest.json index 472f48f..fc8c043 100644 --- a/doctrine/doctrine-bundle/2.4/manifest.json +++ b/doctrine/doctrine-bundle/2.8/manifest.json @@ -11,12 +11,13 @@ "#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml", "#3": "", "#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"", - "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8&charset=utf8mb4\"", + "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4\"", + "#6": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4\"", "DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8" }, "dockerfile": [ "RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\", - "\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\", + "\tdocker-php-ext-install -j\"$(nproc)\" pdo_pgsql; \\", "\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\", "\tapk del .pgsql-deps" ], @@ -46,6 +47,8 @@ } }, "conflict": { + "doctrine/orm": "<2.14", + "symfony/dependency-injection": "<6.2", "symfony/framework-bundle": "<5.3" } } ```
2.8 vs 2.10 ```diff diff --git a/doctrine/doctrine-bundle/2.8/config/packages/doctrine.php b/doctrine/doctrine-bundle/2.10/config/packages/doctrine.php index d625cfa..ad0307f 100644 --- a/doctrine/doctrine-bundle/2.8/config/packages/doctrine.php +++ b/doctrine/doctrine-bundle/2.10/config/packages/doctrine.php @@ -8,10 +8,13 @@ return static function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->extension('doctrine', [ 'dbal' => [ 'url' => '%env(resolve:DATABASE_URL)%', + 'profiling_collect_backtrace' => '%kernel.debug%', ], 'orm' => [ 'auto_generate_proxy_classes' => true, 'enable_lazy_ghost_objects' => true, + 'report_fields_where_declared' => true, + 'validate_xml_mapping' => true, 'naming_strategy' => 'doctrine.orm.naming_strategy.underscore_number_aware', 'auto_mapping' => true, 'mappings' => [ ```

phpunit/phpunit

4.7 vs 9.3 ```diff diff --git a/phpunit/phpunit/4.7/phpunit.xml.dist b/phpunit/phpunit/9.3/phpunit.xml.dist index db2b29d..23ea5cf 100644 --- a/phpunit/phpunit/4.7/phpunit.xml.dist +++ b/phpunit/phpunit/9.3/phpunit.xml.dist @@ -6,12 +6,15 @@ backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php" + convertDeprecationsToExceptions="false" > + + @@ -20,11 +23,11 @@ - - + + src - - + + ```
9.3 vs 9.6 ```diff diff --git a/phpunit/phpunit/9.3/phpunit.xml.dist b/phpunit/phpunit/9.6/phpunit.xml.dist index 23ea5cf..6c4bfed 100644 --- a/phpunit/phpunit/9.3/phpunit.xml.dist +++ b/phpunit/phpunit/9.6/phpunit.xml.dist @@ -33,8 +33,6 @@ - ```

symfony/google-chat-notifier

5.2 vs 5.3 ```diff diff --git a/symfony/google-chat-notifier/5.2/manifest.json b/symfony/google-chat-notifier/5.3/manifest.json index 9ee2643..b91559a 100644 --- a/symfony/google-chat-notifier/5.2/manifest.json +++ b/symfony/google-chat-notifier/5.3/manifest.json @@ -10,6 +10,6 @@ ], "env": { "#1": "See https://developers.google.com/hangouts/chat/how-tos/webhooks", - "#2": "GOOGLE_CHAT_DSN=googlechat://ACCESS_KEY:ACCESS_TOKEN@default/SPACE?threadKey=THREAD_KEY" + "#2": "GOOGLE_CHAT_DSN=googlechat://ACCESS_KEY:ACCESS_TOKEN@default/SPACE?thread_key=THREAD_KEY" } } ```

symfony/phpunit-bridge

3.3 vs 4.1 ```diff diff --git a/symfony/phpunit-bridge/3.3/.env.test b/symfony/phpunit-bridge/4.1/.env.test index 24a43c0..9e7162f 100644 --- a/symfony/phpunit-bridge/3.3/.env.test +++ b/symfony/phpunit-bridge/4.1/.env.test @@ -2,3 +2,5 @@ KERNEL_CLASS='App\Kernel' APP_SECRET='$ecretf0rt3st' SYMFONY_DEPRECATIONS_HELPER=999999 +PANTHER_APP_ENV=panther +PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots diff --git a/symfony/phpunit-bridge/3.3/bin/phpunit b/symfony/phpunit-bridge/4.1/bin/phpunit index 0b79fd4..63dae24 100755 --- a/symfony/phpunit-bridge/3.3/bin/phpunit +++ b/symfony/phpunit-bridge/4.1/bin/phpunit @@ -6,12 +6,6 @@ if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-php exit(1); } -if (false === getenv('SYMFONY_PHPUNIT_VERSION')) { - putenv('SYMFONY_PHPUNIT_VERSION=6.5'); -} -if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) { - putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml'); -} if (false === getenv('SYMFONY_PHPUNIT_DIR')) { putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit'); } diff --git a/symfony/phpunit-bridge/3.3/phpunit.xml.dist b/symfony/phpunit-bridge/4.1/phpunit.xml.dist index 294a559..d81f0c3 100644 --- a/symfony/phpunit-bridge/3.3/phpunit.xml.dist +++ b/symfony/phpunit-bridge/4.1/phpunit.xml.dist @@ -8,10 +8,11 @@ bootstrap="tests/bootstrap.php" > - + + @@ -21,8 +22,8 @@ - - src + + src ```
4.1 vs 4.3 ```diff diff --git a/symfony/phpunit-bridge/4.1/bin/phpunit b/symfony/phpunit-bridge/4.3/bin/phpunit index 63dae24..4d1ed05 100755 --- a/symfony/phpunit-bridge/4.1/bin/phpunit +++ b/symfony/phpunit-bridge/4.3/bin/phpunit @@ -1,8 +1,8 @@ #!/usr/bin/env php + ```
4.3 vs 5.1 ```diff diff --git a/symfony/phpunit-bridge/4.3/phpunit.xml.dist b/symfony/phpunit-bridge/5.1/phpunit.xml.dist index 5766779..40593c6 100644 --- a/symfony/phpunit-bridge/4.3/phpunit.xml.dist +++ b/symfony/phpunit-bridge/5.1/phpunit.xml.dist @@ -8,12 +8,11 @@ bootstrap="tests/bootstrap.php" > - - + @@ -31,4 +30,9 @@ + + ```
5.1 vs 5.3 ```diff diff --git a/symfony/phpunit-bridge/5.1/bin/phpunit b/symfony/phpunit-bridge/5.3/bin/phpunit index 4d1ed05..f26f2c7 100755 --- a/symfony/phpunit-bridge/5.1/bin/phpunit +++ b/symfony/phpunit-bridge/5.3/bin/phpunit @@ -1,13 +1,19 @@ #!/usr/bin/env php + - + @@ -21,11 +23,11 @@ - - + + src - - + + diff --git a/symfony/phpunit-bridge/5.1/post-install.txt b/symfony/phpunit-bridge/5.3/post-install.txt index 2db39ab..e9da2a6 100644 --- a/symfony/phpunit-bridge/5.1/post-install.txt +++ b/symfony/phpunit-bridge/5.3/post-install.txt @@ -1,2 +1,3 @@ * Write test cases in the tests/ folder - * Run php bin/phpunit + * Use MakerBundle's make:test command as a shortcut! + * Run the tests with php bin/phpunit ```
5.3 vs 6.3 ```diff diff --git a/symfony/phpunit-bridge/5.3/manifest.json b/symfony/phpunit-bridge/6.3/manifest.json index 4fb292b..482a1a4 100644 --- a/symfony/phpunit-bridge/5.3/manifest.json +++ b/symfony/phpunit-bridge/6.3/manifest.json @@ -9,5 +9,8 @@ ".phpunit.result.cache", "/phpunit.xml" ], + "conflict": { + "phpunit/phpunit": "<9.6" + }, "aliases": ["simple-phpunit"] } diff --git a/symfony/phpunit-bridge/5.3/phpunit.xml.dist b/symfony/phpunit-bridge/6.3/phpunit.xml.dist index 23ea5cf..6c4bfed 100644 --- a/symfony/phpunit-bridge/5.3/phpunit.xml.dist +++ b/symfony/phpunit-bridge/6.3/phpunit.xml.dist @@ -33,8 +33,6 @@ - ```

symfony/postmark-mailer

4.3 vs 4.4 ```diff diff --git a/symfony/postmark-mailer/4.3/manifest.json b/symfony/postmark-mailer/4.4/manifest.json index b6b855d..7bee685 100644 --- a/symfony/postmark-mailer/4.3/manifest.json +++ b/symfony/postmark-mailer/4.4/manifest.json @@ -1,6 +1,13 @@ { + "add-lines": [ + { + "file": "config/packages/notifier.yaml", + "position": "after_target", + "target": " texter_transports:", + "content": " postmark: '%env(MAILER_DSN)%'" + } + ], "env": { - "#1": "POSTMARK_ID=", - "#2": "MAILER_DSN=smtp://$POSTMARK_ID@postmark" + "#1": "MAILER_DSN=postmark://ID@default" } } ```

symfony/sendgrid-mailer

4.3 vs 4.4 ```diff diff --git a/symfony/sendgrid-mailer/4.3/manifest.json b/symfony/sendgrid-mailer/4.4/manifest.json index 891842c..1fef72d 100644 --- a/symfony/sendgrid-mailer/4.3/manifest.json +++ b/symfony/sendgrid-mailer/4.4/manifest.json @@ -1,6 +1,13 @@ { + "add-lines": [ + { + "file": "config/packages/notifier.yaml", + "position": "after_target", + "target": " texter_transports:", + "content": " sendgrid: '%env(MAILER_DSN)%'" + } + ], "env": { - "#1": "SENDGRID_KEY=", - "#2": "MAILER_DSN=smtp://$SENDGRID_KEY@sendgrid" + "#1": "MAILER_DSN=sendgrid://KEY@default" } } ```

symfony/slack-notifier

5.0 vs 5.1 ```diff diff --git a/symfony/slack-notifier/5.0/manifest.json b/symfony/slack-notifier/5.1/manifest.json index ea1475e..376c462 100644 --- a/symfony/slack-notifier/5.0/manifest.json +++ b/symfony/slack-notifier/5.1/manifest.json @@ -9,6 +9,7 @@ } ], "env": { - "#1": "SLACK_DSN=slack://TOKEN@default?channel=CHANNEL" + "#1": "See https://api.slack.com/messaging/webhooks", + "#2": "SLACK_DSN=slack://default/ID" } } ```
5.1 vs 5.2 ```diff diff --git a/symfony/slack-notifier/5.1/manifest.json b/symfony/slack-notifier/5.2/manifest.json index 376c462..ea1475e 100644 --- a/symfony/slack-notifier/5.1/manifest.json +++ b/symfony/slack-notifier/5.2/manifest.json @@ -9,7 +9,6 @@ } ], "env": { - "#1": "See https://api.slack.com/messaging/webhooks", - "#2": "SLACK_DSN=slack://default/ID" + "#1": "SLACK_DSN=slack://TOKEN@default?channel=CHANNEL" } } ```

symfony/ux-react

2.8 vs 2.9 ```diff diff --git a/symfony/ux-react/2.9/assets/react/controllers/Hello.jsx b/symfony/ux-react/2.9/assets/react/controllers/Hello.jsx new file mode 100644 index 0000000..54fe368 --- /dev/null +++ b/symfony/ux-react/2.9/assets/react/controllers/Hello.jsx @@ -0,0 +1,5 @@ +import React from 'react'; + +export default function (props) { + return
Hello {props.fullName}
; +} diff --git a/symfony/ux-react/2.8/manifest.json b/symfony/ux-react/2.9/manifest.json index be0ff74..444d845 100644 --- a/symfony/ux-react/2.8/manifest.json +++ b/symfony/ux-react/2.9/manifest.json @@ -1,5 +1,40 @@ { "bundles": { "Symfony\\UX\\React\\ReactBundle": ["all"] - } + }, + "copy-from-recipe": { + "assets/": "assets/" + }, + "conflict": { + "symfony/webpack-encore-bundle": "<2.0", + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0" + }, + "add-lines": [ + { + "file": "webpack.config.js", + "content": "\n .enableReactPreset()", + "position": "after_target", + "target": ".splitEntryChunks()" + }, + { + "file": "assets/app.js", + "content": "import { registerReactControllerComponents } from '@symfony/ux-react';", + "position": "top", + "warn_if_missing": true + }, + { + "file": "assets/app.js", + "content": "registerReactControllerComponents(require.context('./react/controllers', true, /\\.(j|t)sx?$/));", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/webpack-encore-bundle" + }, + { + "file": "assets/app.js", + "content": "registerReactControllerComponents();", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/asset-mapper" + } + ] } ```

symfony/ux-svelte

2.8 vs 2.9 ```diff diff --git a/symfony/ux-svelte/2.9/assets/svelte/controllers/Hello.svelte b/symfony/ux-svelte/2.9/assets/svelte/controllers/Hello.svelte new file mode 100644 index 0000000..3499af4 --- /dev/null +++ b/symfony/ux-svelte/2.9/assets/svelte/controllers/Hello.svelte @@ -0,0 +1,5 @@ + + +
Hello {name}
diff --git a/symfony/ux-svelte/2.8/manifest.json b/symfony/ux-svelte/2.9/manifest.json index 7c82371..c5e3457 100644 --- a/symfony/ux-svelte/2.8/manifest.json +++ b/symfony/ux-svelte/2.9/manifest.json @@ -1,5 +1,40 @@ { "bundles": { "Symfony\\UX\\Svelte\\SvelteBundle": ["all"] - } + }, + "copy-from-recipe": { + "assets/": "assets/" + }, + "conflict": { + "symfony/webpack-encore-bundle": "<2.0", + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0" + }, + "add-lines": [ + { + "file": "webpack.config.js", + "content": "\n .enableSvelte()", + "position": "after_target", + "target": ".splitEntryChunks()" + }, + { + "file": "assets/app.js", + "content": "import { registerSvelteControllerComponents } from '@symfony/ux-svelte';", + "position": "top", + "warn_if_missing": true + }, + { + "file": "assets/app.js", + "content": "registerSvelteControllerComponents(require.context('./svelte/controllers', true, /\\.svelte$/));", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/webpack-encore-bundle" + }, + { + "file": "assets/app.js", + "content": "registerSvelteControllerComponents();", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/asset-mapper" + } + ] } ```

symfony/ux-vue

2.8 vs 2.9 ```diff diff --git a/symfony/ux-vue/2.9/assets/vue/controllers/Hello.vue b/symfony/ux-vue/2.9/assets/vue/controllers/Hello.vue new file mode 100644 index 0000000..2812aa4 --- /dev/null +++ b/symfony/ux-vue/2.9/assets/vue/controllers/Hello.vue @@ -0,0 +1,9 @@ + + + diff --git a/symfony/ux-vue/2.8/manifest.json b/symfony/ux-vue/2.9/manifest.json index 9010c6f..2682a62 100644 --- a/symfony/ux-vue/2.8/manifest.json +++ b/symfony/ux-vue/2.9/manifest.json @@ -1,5 +1,40 @@ { "bundles": { "Symfony\\UX\\Vue\\VueBundle": ["all"] - } + }, + "copy-from-recipe": { + "assets/": "assets/" + }, + "conflict": { + "symfony/webpack-encore-bundle": "<2.0", + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0" + }, + "add-lines": [ + { + "file": "webpack.config.js", + "content": "\n .enableVueLoader()", + "position": "after_target", + "target": ".splitEntryChunks()" + }, + { + "file": "assets/app.js", + "content": "import { registerVueControllerComponents } from '@symfony/ux-vue';", + "position": "top", + "warn_if_missing": true + }, + { + "file": "assets/app.js", + "content": "registerVueControllerComponents(require.context('./vue/controllers', true, /\\.vue$/));", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/webpack-encore-bundle" + }, + { + "file": "assets/app.js", + "content": "registerVueControllerComponents();", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/asset-mapper" + } + ] } ```