Skip to content

[Constraints] Added missing formats #2214

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 2 commits into from
Feb 14, 2013
Merged

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Feb 5, 2013

Q A
Doc fix? yes
New docs? no
Applies to all
Related tickets #2042

After this PR, all formats are documented for the constraints in the reference section. This PR adds the XML format for the Regex constraint and cherry picks the XML and PHP config formats for the Min constraint from #2076

<property name="age">
<constraint name="Min">
<option name="limit">18</option>
<option name="message">You must be 18 or older to enter</option>
Copy link
Contributor

Choose a reason for hiding this comment

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

A . at the end should be added to be compliant with most of the constraint entries, shouldn't it?

I know it is really minor but for unification's sake

Copy link
Member Author

Choose a reason for hiding this comment

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

@ricarclau, although this is minor it is one of the most important things in the documentation. Consistency is the easiest thing for beginners in tutorials. If they see other things on every page, they will get confused. My target for this documentation is to have a documentation that looks like it is made by one man, but has a big community behind it.

Did you fixed the other sentences in this document?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not for this document as it would conflict your changes. I guess best option is that you add . in all parts of constraints/Min and I'll check the rest of constraints.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ricardclau, I have added the interpunction.

weaverryan added a commit that referenced this pull request Feb 14, 2013
[Constraints] Added missing formats
@weaverryan weaverryan merged commit 6a4d1c4 into symfony:2.0 Feb 14, 2013
@weaverryan
Copy link
Member

Thanks @wouterj!

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

3 participants