Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Uid] Use Interfaces for Factories#61842

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Hanmac wants to merge5 commits intosymfony:7.4fromHanmac:uuidFactoryInterface

Conversation

@Hanmac
Copy link
Contributor

QA
Branch?7.4
Bug fix?no
New feature?yes
Deprecations?no
IssuesFix#61807 (comment)
LicenseMIT

@stof
Copy link
Member

Introducing such interfaces without updating the id generators of the doctrine-bridge to accept them will not allow using the mock factories

@Hanmac
Copy link
ContributorAuthor

@stof updated the Generator in Doctrine

$ulid =newUlid('00000000000000000000000000');
$em = (new \ReflectionClass(EntityManager::class))->newInstanceWithoutConstructor();
$factory =$this->createMock(UlidFactory::class);
$factory =$this->createMock(UlidFactoryInterface::class);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we use the mockfactory here?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Maybe? Can you link me an example?

@nicolas-grekas
Copy link
Member

I'm rather 👎 : that's introducing yet more abstractions for not real benefits.

@fabpot
Copy link
Member

I agree with@nicolas-grekas. Thank you for proposing.

@fabpotfabpot closed thisSep 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

Assignees

No one assigned

Projects

None yet

Milestone

7.4

Development

Successfully merging this pull request may close these issues.

6 participants

@Hanmac@stof@nicolas-grekas@fabpot@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp