Skip to content

[Routing] Add MONGODB_ID to requirement patterns #59922

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
Mar 8, 2025

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Mar 6, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

The MongoDB ObjectID is a 12-bytes binary value represented as an hexadecimal string of 24 characters.

They are used by default in Doctrine MongoDB ODM.

@carsonbot carsonbot added this to the 7.3 milestone Mar 6, 2025
@carsonbot carsonbot changed the title [Routing] Add MONGODB_ID to requirement patterns [Routing] Add MONGODB_ID to requirement patterns Mar 6, 2025
@GromNaN GromNaN requested a review from Copilot March 6, 2025 10:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR adds a new constant, Requirement::MONGODB_ID, to support validation of MongoDB ObjectIDs in hexadecimal format. The changelog has been updated accordingly.

  • Added changelog entry documenting the new constant for MongoDB ObjectID validation

Reviewed Changes

File Description
src/Symfony/Component/Routing/CHANGELOG.md Updated changelog to document the addition of the new constant

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

@GromNaN GromNaN force-pushed the requirement-mongodb-id branch from 7a2aaaf to 44d621b Compare March 6, 2025 10:27
@GromNaN GromNaN force-pushed the requirement-mongodb-id branch from 44d621b to 84085d5 Compare March 6, 2025 15:04
@fabpot
Copy link
Member

fabpot commented Mar 8, 2025

Thank you @GromNaN.

@fabpot fabpot merged commit 5e59554 into symfony:7.3 Mar 8, 2025
11 checks passed
@GromNaN GromNaN deleted the requirement-mongodb-id branch March 8, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants