We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
8.1
6.5 & 6.6
If the new Symfoyn 6.4+ option "--profile" is used, then I expect the database middleware to be used even in CLI mode.
see https://symfony.com/blog/new-in-symfony-6-4-command-profiler
Databae middleware is not used and therefore queries are not collected
Call any command with --profile and open the command profiler for it. it does not log any queries.
--profile
The text was updated successfully, but these errors were encountered:
We found the following existing issues which may help or are related to your topic:
Sorry, something went wrong.
the easiest solution would be to just replace the check to something like this.
if ((\PHP_SAPI !== 'cli' || (new \Symfony\Component\Console\Input\ArgvInput())->hasParameterOption('--profile')) && $this->environment !== 'prod' && InstalledVersions::isInstalled('symfony/doctrine-bridge')) {
or
if ((\PHP_SAPI !== 'cli' || in_array('--profile', $_SERVER['argv'] ?? [], true)) && $this->environment !== 'prod' && InstalledVersions::isInstalled('symfony/doctrine-bridge')) {
No branches or pull requests
PHP Version
8.1
Shopware Version
6.5 & 6.6
Expected behaviour
If the new Symfoyn 6.4+ option "--profile" is used, then I expect the database middleware to be used even in CLI mode.
see https://symfony.com/blog/new-in-symfony-6-4-command-profiler
Actual behaviour
Databae middleware is not used and therefore queries are not collected
How to reproduce
Call any command with
--profile
and open the command profiler for it. it does not log any queries.The text was updated successfully, but these errors were encountered: