Skip to content

Conversation

@symfony-php-recipes-bot
Copy link
Member

Q A
License MIT

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

@github-actions
Copy link

github-actions bot commented Apr 7, 2025

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

    composer req symfony/flex
    composer req 'league/oauth2-server-bundle:^0.11'
  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.

league/oauth2-server-bundle

0.4 vs 0.11
diff --git a/league/oauth2-server-bundle/0.4/config/routes/league_oauth2_server.php b/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.php
index 5f9fd2e..589a274 100644
--- a/league/oauth2-server-bundle/0.4/config/routes/league_oauth2_server.php
+++ b/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.php
@@ -5,5 +5,5 @@ declare(strict_types=1);
 use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
 
 return static function (RoutingConfigurator $routingConfigurator): void {
-    $routingConfigurator->import('@LeagueOAuth2ServerBundle/Resources/config/routes.php', 'php');
+    $routingConfigurator->import('@LeagueOAuth2ServerBundle/config/routes.php', 'php');
 };
diff --git a/league/oauth2-server-bundle/0.4/manifest.json b/league/oauth2-server-bundle/0.11/manifest.json
index 71be019..ee510d4 100644
--- a/league/oauth2-server-bundle/0.4/manifest.json
+++ b/league/oauth2-server-bundle/0.11/manifest.json
@@ -11,8 +11,5 @@
         "OAUTH_PASSPHRASE": "%generate(secret)%",
         "OAUTH_ENCRYPTION_KEY": "%generate(secret)%"
     },
-    "gitignore": [
-        "/%CONFIG_DIR%/jwt/*.pem"
-    ],
     "aliases": ["oauth2-server", "oauth-server"]
 }
diff --git a/league/oauth2-server-bundle/0.4/post-install.txt b/league/oauth2-server-bundle/0.11/post-install.txt
index 2976520..1eba7a5 100644
--- a/league/oauth2-server-bundle/0.4/post-install.txt
+++ b/league/oauth2-server-bundle/0.11/post-install.txt
@@ -1,5 +1,5 @@
   1.  Provide a key pair 
-    * Generate a private/public key pair at the locations defined in your .env file, using the value of the  OAUTH_PASSPHRASE as passphrase: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys
+    * Generate a private/public key pair by running php bin/console league:oauth2-server:generate-keypair
 
   2.  Update the database schema 
     * Update your database schema so that bundle entities can be managed by Doctrine

@alexander-schranz alexander-schranz merged commit de540a7 into schranz-php-recipes:main Apr 7, 2025
1 of 2 checks passed
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.

2 participants