Skip to content
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

Always try form registry first #97

Merged
merged 2 commits into from
Dec 9, 2015
Merged

Conversation

Spea
Copy link
Contributor

@Spea Spea commented Dec 4, 2015

In 2.8 the getName method from the FormTypeInterface is deprecated, instead the FQDN should be used. When doing so, the FormAnnotationResolver always tries to instantiate the class instead of using the formRegistry.
Since the FormRegistry already handles this case since 2.8, I check the registry if the type exists and get it from the there instead of trying to instantiate it.

This should not break any compatibility.

@mmoreram
Copy link
Owner

mmoreram commented Dec 4, 2015

@Spea Thanks for that issue + PR!
Tomorrow morning I will definitely review, merge and tag this PR :)
I appreciate that! ^^

@Spea
Copy link
Contributor Author

Spea commented Dec 7, 2015

@mmoreram do you need anything else to get this merged?

@mmoreram
Copy link
Owner

mmoreram commented Dec 7, 2015

I'm trying to fix some issues related to v3.0.0 compatibility, and there is any tests failing because of this...
Can you add a test covering this?
I will create a PR now with some tests, turning green all tests, and you'll be able to rebase.
After this, I will tag.

Thanks :)

@Spea
Copy link
Contributor Author

Spea commented Dec 7, 2015

Allright, thx :)

@Spea
Copy link
Contributor Author

Spea commented Dec 7, 2015

Just out of curiosity. Do you want a functional test, an unit test or both?

@mmoreram
Copy link
Owner

mmoreram commented Dec 7, 2015

Well, you've playing more than me on that issue, so feel free. The important thing here is to find an scenario failing without your patch, and passing with it :)

@mmoreram
Copy link
Owner

mmoreram commented Dec 7, 2015

Check this :)
#98
You will notice that I've updated the minimum versions in order to work with 2.8 and 3.0. This is not BC Break so, people using these versions, will be able to update. Otherwise, no.
What do you think?

@mmoreram
Copy link
Owner

mmoreram commented Dec 7, 2015

@Spea rebase with master and as soon as you find that scenario that fails, we can review this ^^

Thanks :)

@Spea
Copy link
Contributor Author

Spea commented Dec 7, 2015

@mmoreram ping

I removed the class_exists check completely since the master now only supports > 2.8

@Spea
Copy link
Contributor Author

Spea commented Dec 9, 2015

@mmoreram I don't want to be pushy, but I kinda depend on this PR. Is it possible to merge this today?

@mmoreram
Copy link
Owner

mmoreram commented Dec 9, 2015

Oh, the ping was because the test is done!
Great :)

mmoreram added a commit that referenced this pull request Dec 9, 2015
Always try form registry first
@mmoreram mmoreram merged commit 023326f into mmoreram:master Dec 9, 2015
@mmoreram
Copy link
Owner

mmoreram commented Dec 9, 2015

@Spea Excellent, man! Great job! :D

Thanks !

@Spea
Copy link
Contributor Author

Spea commented Dec 9, 2015

Thanks for merging :)

@Spea Spea deleted the patch-2 branch December 9, 2015 10:43
@mmoreram
Copy link
Owner

mmoreram commented Dec 9, 2015

Thanks you for doing :D

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.

2 participants