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
Pluralization class replaced with Doctrine/Inflector #392
Conversation
have a look at the diff. there are quite a few issues with intending. the name of the inflector service should maybe be configurable under the |
Yes, I was not sure where to put it, in Util or under routing. What do you mean with issues with indending? Or was this about the place where I put the configuration and classes? |
I wasnt talking about the namespace. i was talking about adding the name of the service into the As for indenting, just look at the diff, you will see that in several places your additional code isnt aligned the same way as the existing code. |
Aah, now I understand. Sorry, that is indeed a good suggestion. Making the name of the Inflector class configurable. I will change that one. On the second issue, I read intending instead of indenting, but see that there are indenting issues in the diff. Strange because I don't have them on my machine. Let's see if I can get those fixed too :-) |
for the inflector i would make the service configurable .. not sure how useful it is to configure just the class. |
Sorry, that was what I meant. Busy finding out how to do it :-) |
Configuration added and indention issues fixed. |
looks good .. can you adjust the travis.yml file as follows:
that should fix the tests. |
And done |
ok thx. i just send out a request for people to test this on twitter: |
@Elexy could you test this PR with your apps? |
this PR now need a rebase. |
@@ -10,7 +10,7 @@ env: | |||
# - SYMFONY_VERSION=dev-master | |||
|
|||
before_script: | |||
- composer require symfony/framework-bundle:${SYMFONY_VERSION} | |||
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder if this is really needed or what is the advantage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is no longer needed once the PR is rebased to master
All my apps tests run successfully on the 0.11 branch. 0.12 gives unrelated errors by itself. |
just to clarify. what so you mean with 0.11 branch? the code in this branch (which is based on the 0.11 branch) ? |
OK, thanks. @asm89 did you have a chance to test? |
Just tested with SF2.2.0 + this @0.12 (dev-master) and after a rm app/cache/* -rf all tests pass as well. app/console cache:clear -e test didn't do the trick. My previous test was with SF2.1.. |
see #403 |
i have merged #403 |
Replacing the Pluralization class reduces maintenance our own solution and makes it easier to configure.