-
Notifications
You must be signed in to change notification settings - Fork 105
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
1102: Fix bug create an observer #1166
1102: Fix bug create an observer #1166
Conversation
…rk-through-the-context-menu
return true; | ||
} | ||
|
||
return PhpLangUtil.isFqn(targetClass.getFQN()) && !targetClass.getFQN().endsWith("\\"); |
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.
Why we don’t use here com.magento.idea.magento2plugin.actions.generation.generator.util.PhpClassGeneratorUtil#isValidFqn
?
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.
Hello, @VitaliyBoyko, thank you for review,
I didn't use com.magento.idea.magento2plugin.actions.generation.generator.util.PhpClassGeneratorUtil#isValidFqn , because this method returns true when checking Fqn that ends with '\'
Thank you.
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.
ok
…er-not-work-through-the-context-menu 1102: Fix bug create an observer
Description (*)
This pull request (PR) provides, fix bug create an observer for an event doesn't work through the context menu
Fixed Issues (if relevant)
Questions or comments
Contribution checklist (*)