-
Notifications
You must be signed in to change notification settings - Fork 293
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
Refactor the form extractor to allow extraction from FormListeners #96
Refactor the form extractor to allow extraction from FormListeners #96
Conversation
@@ -272,8 +172,7 @@ private function parseItem($item, $domain = null) | |||
// get doc comment | |||
$ignore = false; | |||
$desc = $meaning = null; | |||
$docComment = $item->key->getDocComment(); | |||
$docComment = $docComment ? $docComment : $item->value->getDocComment(); | |||
$docComment = $item->value->getDocComment() ? $item->value->getDocComment() : $item->getDocComment(); |
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.
Seems I did it the other way round. Any preferences for this?
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'd say, let's keep the original order, no need to change this.
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.
fixed
@schmittjoh any more things that should be taken care of? I have been testing the patch and everything seems to be working |
Could you remove the minimum stability setting, and check whether the tests pass then? |
There is one test still failing. It is failing in the current master branch too
|
@schmittjoh any ideas for the failing test? |
@schmittjoh do you need something more for this PR? Thanks! |
Just checking whether Travis works now. |
doesn't seem so :( |
Seems like AopBundle is not loading property. Strange because it is in the require section of the DiExtraBundle... |
@acasademont the path problem is due to the twig extensions not being loaded correctly in the unit test, i've addressed this in my pull request regarding extracting twig embeds. |
Ah! This is great news :) Hope we can manage to finally pass the tests. As I said now there is a problem with AopBundle not being loaded |
@schmittjoh could you please take a look to this and do the merge? Each time I try extract translation messages I get changes in a lot of files because of the dynamic parts of the forms not being correctly parsed. Thanks! |
+1 |
see #93
Also as said in that ticket, there are some tests failing due to the new PSR-3 LoggerInterface and SF 2.2 components