You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I launch server:log without the log recipe, an error exception from Application.php is thrown:
$ php bin/console server:log -vvv
In Application.php line 835:
[ErrorException]
Warning: Invalid argument supplied for foreach()
Exception trace:
Symfony\Component\Console\Application->doRunCommand() at /tmp/tmp.WXDjJ0JAbN/vendor/symfony/framework-bundle/Console/Application.php:83
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /tmp/tmp.WXDjJ0JAbN/vendor/symfony/console/Application.php:217
Symfony\Component\Console\Application->doRun() at /tmp/tmp.WXDjJ0JAbN/vendor/symfony/framework-bundle/Console/Application.php:71
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /tmp/tmp.WXDjJ0JAbN/vendor/symfony/console/Application.php:124
Symfony\Component\Console\Application->run() at /tmp/tmp.WXDjJ0JAbN/bin/console:36
@maidmaid this is because Monolog is not registered as dependency on your project. Run composer req monolog to use your command.
Internally, this is because the command is not enabled. For now, to follow our policy so far, the following PR hides the command when monolog is not available: #25027
…roze)
This PR was merged into the 3.4 branch.
Discussion
----------
[FrameworkBundle] Hide server:log command based on deps
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #25025
| License | MIT
| Doc PR | ø
Remove the `server:log` command if monolog is not installed.
Commits
-------
b505ac7 Remove the `server:log` command if monolog is not loaded
If I launch
server:log
without thelog
recipe, an error exception fromApplication.php
is thrown:Reproducer:
The text was updated successfully, but these errors were encountered: