Skip to content

Add Symfony Uid support - #3715

Merged
alanpoulain merged 1 commit into
api-platform:masterfrom
norkunas:symfony-uid-support
Sep 10, 2020
Merged

Add Symfony Uid support#3715
alanpoulain merged 1 commit into
api-platform:masterfrom
norkunas:symfony-uid-support

Conversation

@norkunas

Copy link
Copy Markdown
Contributor
QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Ticketsfixes#3714
LicenseMIT
Doc PRapi-platform/docs#...
  • Added support for denormalizing identifiers with symfony uuid/ulid;
  • Added ulid/uuid support to json schema;

@norkunas
norkunasforce-pushed the symfony-uid-support branch 9 times, most recently from b06aa3b to 88b9bb5CompareSeptember 10, 2020 13:23

@dunglasdunglas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@norkunas
norkunasforce-pushed the symfony-uid-support branch 2 times, most recently from 8ff7e03 to b49a163CompareSeptember 10, 2020 15:36

@alanpoulainalanpoulain left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@alanpoulain
alanpoulain merged commit 17966ce into api-platform:masterSep 10, 2020
@alanpoulain

Copy link
Copy Markdown
Member

Thanks a lot @norkunas!

@norkunas
norkunas deleted the symfony-uid-support branch September 10, 2020 17:10
@alanpoulain

Copy link
Copy Markdown
Member

See also: symfony/symfony#36406.

xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="api_platform.identifier.symfony_ulid_normalizer" class="ApiPlatform\Core\Bridge\Symfony\Identifier\Normalizer\UlidNormalizer" public="false">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soyukasoyuka mentioned this pull request Oct 14, 2020
@Wyze5280Wyze5280 mentioned this pull request Jul 22, 2022
use Symfony\Component\HttpClient\HttpClientTrait;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Uid\AbstractUid;
use Symfony\Component\Validator\Validator\ValidatorInterface;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
useSymfony\Component\Validator\Validator\ValidatorInterface;
useSymfony\Component\Validator\Validator\ValidatorInterface;

use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Uid\AbstractUid;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Component\Yaml\Yaml;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
useSymfony\Component\Yaml\Yaml;
useSymfony\Component\Yaml\Yaml;

@@ -113,6 +113,8 @@ jobs:
run: |
composer global require --prefer-dist --no-progress --no-suggest --ansi \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
composer global require --prefer-dist --no-progress --no-suggest --ansi \
composer global require --prefer-dist --no-progress --no-suggest --ansi \

@@ -53,6 +53,7 @@
use Symfony\Component\Finder\Finder;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
useSymfony\Component\Finder\Finder;
useSymfony\Component\Finder\Finder;

Sign up for freeto 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.

Symfony Uid support for Json schema

5 participants

@norkunas@alanpoulain@dunglas@maxhelias@Wyze5280