Replies: 3 comments 2 replies
-
How? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
The primary problem being lack of deterministic testing in your unit tests because there’s no dependency injection. You can’t fully isolate the system under test from the external tools and libraries you use. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I dropped the static classes in 5eb585c |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@agustingomes writes:1
I agree that the
Ramsey\Identifier\UuidandRamsey\Identifier\Ulidstatic classes can lead to confusion and bad practices, so I'm inclined to follow this feedback.To encourage best practices, I'm also considering dropping
Ramsey\Identifier\Uuid\FactoryandRamsey\Identifier\Uuid\FactoryInterface. If coding to the interface, folks should accept any form ofIdentifier\Identifier, which could be fulfilled by any of the UUID or ULID factories provided inRamsey\Identifier\Uuid\FactoryorRamsey\Identifier\Ulid\Factorythrough dependency injection.Footnotes
https://twitter.com/agustingomes/status/1576500286780108802?s=20&t=lj0_dBx0baRQV8N_1fNpbg ↩
Beta Was this translation helpful? Give feedback.
All reactions