PHP CLI container without services dependencies #808
marciomaciel
started this conversation in
Polls
Replies: 1 comment 1 reply
-
I'm confused by the scenario where you use Warden for PHP inspections against Magento but don't need other Magento required services like MySQL. Could you explain your use case a little more please? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
In my local development environment using Warden, I created a specific container for running PhpStorm’s quality tools inspections. The issue I ran into is that services like php-fpm and php-debug depend on others, like MySQL. So, when running the inspection in PhpStorm, it needs MySQL to be up, which leads to unnecessary services being started. This check to bring up MySQL adds extra time to the process and creates a delay when running code sniffer or using the remote interpreter as an external formatter.
Locally, I solved this by creating a specific service called php-inspection without any dependencies, but I only did this for the Magento 2 environment. I want to know if the community sees value in this implementation. If so, I can contribute by adding support for this inspection service across all PHP environments.
Would you be interested in this? If there’s enough interest, I’ll create a PR with the necessary adjustments and documentation update
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions