Skip to content

[Uid] Default versions in framework VS recipes #19196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions components/uid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -113,10 +113,10 @@ configure the behavior of the factory using configuration files::

<framework:config>
<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"
/>
</framework:config>
Expand All @@ -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,
],
]);
Expand All @@ -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(/** ... */);
Expand Down