Skip to content

Commit 360bd40

Browse files
committed
minor #19196 [Uid] Default versions in framework VS recipes (smnandre)
This PR was merged into the 6.4 branch. Discussion ---------- [Uid] Default versions in framework VS recipes Really not sure if this is normal or not, and how it could be improved. In the framework DI/config, default UUID versions are * 6 5 6 in [Symfony 6.2 6.3 and 6.4](https://github.com/symfony/symfony/blob/6.4/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php) * 7 5 7 in [Symfony >= 7.0](https://github.com/symfony/symfony/blob/7.0/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php) BUT It seems the symfony/uid flex recipes did already use 7 5 7 in 6.4... So ... 🤷🏻‍♂️ Commits ------- edbaa0d [UID] Fix default versions in framework config
2 parents a7c7c18 + edbaa0d commit 360bd40

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

components/uid.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ configure the behavior of the factory using configuration files::
9494
# config/packages/uid.yaml
9595
framework:
9696
uid:
97-
default_uuid_version: 7
97+
default_uuid_version: 6
9898
name_based_uuid_version: 5
9999
name_based_uuid_namespace: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
100-
time_based_uuid_version: 7
100+
time_based_uuid_version: 6
101101
time_based_uuid_node: 121212121212
102102
103103
.. code-block:: xml
@@ -113,10 +113,10 @@ configure the behavior of the factory using configuration files::
113113
114114
<framework:config>
115115
<framework:uid
116-
default_uuid_version="7"
116+
default_uuid_version="6"
117117
name_based_uuid_version="5"
118118
name_based_uuid_namespace="6ba7b810-9dad-11d1-80b4-00c04fd430c8"
119-
time_based_uuid_version="7"
119+
time_based_uuid_version="6"
120120
time_based_uuid_node="121212121212"
121121
/>
122122
</framework:config>
@@ -135,10 +135,10 @@ configure the behavior of the factory using configuration files::
135135
136136
$container->extension('framework', [
137137
'uid' => [
138-
'default_uuid_version' => 7,
138+
'default_uuid_version' => 6,
139139
'name_based_uuid_version' => 5,
140140
'name_based_uuid_namespace' => '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
141-
'time_based_uuid_version' => 7,
141+
'time_based_uuid_version' => 6,
142142
'time_based_uuid_node' => 121212121212,
143143
],
144144
]);
@@ -160,7 +160,7 @@ on the configuration you defined::
160160

161161
public function generate(): void
162162
{
163-
// This creates a UUID of the version given in the configuration file (v7 by default)
163+
// This creates a UUID of the version given in the configuration file (v6 by default)
164164
$uuid = $this->uuidFactory->create();
165165

166166
$nameBasedUuid = $this->uuidFactory->nameBased(/** ... */);

0 commit comments

Comments
 (0)