From edbaa0dd44d96cc6316c679f6dca6440b2fe81ab Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 29 Nov 2023 01:23:01 +0100 Subject: [PATCH] [UID] Fix default versions in framework config Default UUID versions are * 6 5 6 in Symfony 6.2 6.3 and 6.4 * 7 5 7 in Symfony >= 7.0 Sources: * https://github.com/symfony/symfony/blob/6.4/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php * https://github.com/symfony/symfony/blob/7.0/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php --- components/uid.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/uid.rst b/components/uid.rst index 52403513995..f27977a8296 100644 --- a/components/uid.rst +++ b/components/uid.rst @@ -94,10 +94,10 @@ configure the behavior of the factory using configuration files:: # config/packages/uid.yaml framework: uid: - default_uuid_version: 7 + default_uuid_version: 6 name_based_uuid_version: 5 name_based_uuid_namespace: 6ba7b810-9dad-11d1-80b4-00c04fd430c8 - time_based_uuid_version: 7 + time_based_uuid_version: 6 time_based_uuid_node: 121212121212 .. code-block:: xml @@ -113,10 +113,10 @@ configure the behavior of the factory using configuration files:: @@ -135,10 +135,10 @@ configure the behavior of the factory using configuration files:: $container->extension('framework', [ 'uid' => [ - 'default_uuid_version' => 7, + 'default_uuid_version' => 6, 'name_based_uuid_version' => 5, 'name_based_uuid_namespace' => '6ba7b810-9dad-11d1-80b4-00c04fd430c8', - 'time_based_uuid_version' => 7, + 'time_based_uuid_version' => 6, 'time_based_uuid_node' => 121212121212, ], ]); @@ -160,7 +160,7 @@ on the configuration you defined:: public function generate(): void { - // This creates a UUID of the version given in the configuration file (v7 by default) + // This creates a UUID of the version given in the configuration file (v6 by default) $uuid = $this->uuidFactory->create(); $nameBasedUuid = $this->uuidFactory->nameBased(/** ... */);