Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bad message when typing php bin/console cache:warmup --help #47380

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

Closed
houssemz opened this issue Aug 24, 2022 · 0 comments
Closed

Bad message when typing php bin/console cache:warmup --help #47380

houssemz opened this issue Aug 24, 2022 · 0 comments

Comments

@houssemz
Copy link

Symfony version(s) affected

^4.4 | ^5.0 | ^6.0

Description

Bad message

This command does not generate the classes cache (as when executing this
  command, too many classes that should be part of the cache are already loaded
  in memory). Use curl or any other similar tool to warm up
  the classes cache if you want.

When typing php bin/console cache:warmup --help

How to reproduce

type php bin/console cache:warmup --help

Possible Solution

Remove it form src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php file

image

Additional Context

No response

@houssemz houssemz added the Bug label Aug 24, 2022
@fabpot fabpot closed this as completed Aug 24, 2022
fabpot added a commit that referenced this issue Aug 26, 2022
…ommand (Houssem)

This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] fix bad help message in cache warmup command

| Q             | A
| ------------- | ---
| Branch?       |  4.4 for bug fixes <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #47380 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against the latest branch.
 - For new features, provide some code snippets to help understand usage.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

This feature was removed years ago due to providing no benefit on PHP 7+

Commits
-------

72afc77 fix bad help message in cache warmup command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants