-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Command] Cache:clear is broken #7604
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
Comments
You added the "$data" argument yourself and made it required. You should just make it optional ($data = null in the method signature)... |
We are loading some config files based on stuff in |
Overload the application (Console\Application) and put the data you want to have. It's the only option I believe and doing this shouldn't be a big deal. |
Could you try reverting #7360 to see if it helps ? |
I reverted the 3 commits from #7360 but I'm still getting the same error. Then it's probably an undocumented s2.2 feature/bc break I guess. |
The Does your Anyway, how could the command determine which data to pass to this argument? I don't think your problem is fixable. You can replace this command with your own class extending existing one and override the |
jfsimon, well it did used to work.I was using a similiar technique myself |
We have a custom AppKernel:
Running the
cache:clear
command throws the following exception:Now let's have a look in CacheClearCommand.php on line 198: https://github.com/symfony/symfony/blob/2.2/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php#L198
Adding a third parameter makes the command working again:
I believe the command is broken since Symfony 2.2.1. How should this be fixed?
The text was updated successfully, but these errors were encountered: