What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello, I might have a little stupid question but when I've switched from IDEA to PhpStorm, all class
Hello, I might have a little stupid question but when I've switched from IDEA to PhpStorm, all classes like Facades, Repositories and so on are shown as unused cause there is no direct implementation of such class in PHP when code inspection runs. In IDEA I had not such problem and I've checked the plugins which are the same related with PHP. Am I missing some specific PhpStorm configuration here? Thank you.
Comments
-
HI @U01E6Q6AMHC! I think itβs because those classes are not used directly. They are available and used via
Locator
and resolved automatically for each module.0 -
Probably IDEA is not analizing PHP code deeply as PhpStorm does
0 -
Hi Aleksey, thank you for your answer. So it means that when IDEA doesn't consider that class as unused it's wrong? And I should see all such classes as unsued in PhpStorm? I don't recall on trainings that these classes were shown as unused and in the presentation the PhpStorm was used.
0 -
I think you can add
@method \Pyz\Zed\Module\Business\ModuleFacadeInterface getFacade()
annotation in place where itβs used. For example in Plugins.0 -
It might help
0 -
Unfortunately not, it didn't help
0 -
I see there is a Spryker plugin available but it looks outdated and probably not official
0 -
latest update 2017
0 -
Yeah itβs not official and not fully supported
0 -
Ok I see there is an option to supress this if the class itself is annotated by
@method
, maybe this is the cause0 -
BTW what do you expect from Spryker PhpStorm plugin? It would be nice to have some feedback from the community what is needed so maybe we can add this to the future roadmap
0 -
For instance the plugin will know that such classes are used not unused, tools for generating folder structure (I know console commands can do it as well) therefore maybe integration PhpStorm with Docker/Vagrant console, so you can use some shortcuts like generate ide autocompletion files and reload files from disc (if project is in samba share), same for propel install, transfer generate and other most uses commands. Better integration of code completion with twig templates (currently these templates doesn't autocomplete functions, variables). Symfony plugin is for such reason to connect twig templates with controller therefore it's more friendly to use. But only for Symfony code structure ofc so not applicable here. Tools to generate test classes/structure from the class you are currently on (e.g. I am on Facade and I want to create tests for that facade so I will use some shortcuts and I can write tests directly without manually creation the structure, configuration file for codeception etc.
0 -
Thanks for the feedback!
0 -
Glad to help! So I do understand you are working on that plugin? π Or you have some another one in plans?
0 -
No, Iβm not working on this plugin. But we gather ideas from community.
0 -
BTW you can your points right here
https://spryker.ideas.aha.io/ideas0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 930 Developer Corner
- 788 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random