Skip to content

[Inflector] Support pluralization in the inflector #26890

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 31, 2019
Merged

[Inflector] Support pluralization in the inflector #26890

merged 1 commit into from
Mar 31, 2019

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Apr 11, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? not yet
Fixed tickets N/A
License MIT
Doc PR Not Yet

At present the inflector only supports singularizing plural words, this PR adds the capability to pluralize singular words.

@ostrolucky
Copy link
Contributor

Have you read readme of this component?

This component is currently marked as internal. Do not use it in your own code.

I don't see this patch utilized in other components, so why adding unused feature into internal component?

@mbabker
Copy link
Contributor Author

mbabker commented Apr 12, 2018

In combination with #26903 this allows us in Joomla to drop our inflector (which is in essence stable but unmaintained because we just don't have the resources to keep up with it) for something which is better maintained.

@fabpot
Copy link
Member

fabpot commented Mar 31, 2019

Thank you @mbabker.

@fabpot fabpot merged commit 06920a7 into symfony:master Mar 31, 2019
fabpot added a commit that referenced this pull request Mar 31, 2019
…abker)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[Inflector] Support pluralization in the inflector

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | not yet
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | Not Yet

At present the inflector only supports singularizing plural words, this PR adds the capability to pluralize singular words.

Commits
-------

06920a7 Support pluralization in the inflector
@mbabker mbabker deleted the inflector-pluralization branch March 31, 2019 18:31
@jewome62
Copy link
Contributor

jewome62 commented Apr 1, 2019

After rebase on master, Test suite on Inflector failed :
Exemple : https://travis-ci.org/symfony/symfony/builds/514143324?utm_source=github_status&utm_medium=notification

@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
@fabpot fabpot mentioned this pull request May 9, 2019
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.

7 participants