Skip to content

Commit 25bc5e5

Browse files
committed
bug #23825 Revert "feature #21038 [FrameworkBundle] deprecated cache:clear with warmup (fabpot)" (nicolas-grekas)
This PR was merged into the 3.3 branch. Discussion ---------- Revert "feature #21038 [FrameworkBundle] deprecated cache:clear with warmup (fabpot)" This reverts commit 3495b35e4fcdb2bf90b8aea443c1216c161dd469, reversing changes made to 7f7b897ee275d4cbbd4284dbdd05f1d207699fac. | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21038 | License | MIT | Doc PR | - Sibling to #23792: there is no need to trigger the deprecation in 3.3 if we un-deprecate in 3.4. Commits ------- 90099706c6 Revert "feature #21038 [FrameworkBundle] deprecated cache:clear with warmup (fabpot)"
2 parents bfb5d34 + efdc7c3 commit 25bc5e5

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ CHANGELOG
1414
the same helpers as the `Controller` class, but does not allow accessing the dependency
1515
injection container, in order to encourage explicit dependency declarations.
1616
* Added support for the `controller.service_arguments` tag, for injecting services into controllers' actions
17-
* Deprecated `cache:clear` with warmup (always call it with `--no-warmup`)
1817
* Changed default configuration for
1918
assets/forms/validation/translation/serialization/csrf from `canBeEnabled()` to
2019
`canBeDisabled()` when Flex is used

Command/CacheClearCommand.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
7777
if ($input->getOption('no-warmup')) {
7878
$filesystem->rename($realCacheDir, $oldCacheDir);
7979
} else {
80-
$warning = 'Calling cache:clear without the --no-warmup option is deprecated since version 3.3. Cache warmup should be done with the cache:warmup command instead.';
81-
82-
@trigger_error($warning, E_USER_DEPRECATED);
83-
84-
$io->warning($warning);
85-
8680
$this->warmupCache($input, $output, $realCacheDir, $oldCacheDir);
8781
}
8882

@@ -132,8 +126,6 @@ private function warmupCache(InputInterface $input, OutputInterface $output, $re
132126
* @param string $warmupDir
133127
* @param string $realCacheDir
134128
* @param bool $enableOptionalWarmers
135-
*
136-
* @internal to be removed in 4.0
137129
*/
138130
protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = true)
139131
{
@@ -200,8 +192,6 @@ protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = tr
200192
* @param string $warmupDir
201193
*
202194
* @return KernelInterface
203-
*
204-
* @internal to be removed in 4.0
205195
*/
206196
protected function getTempKernel(KernelInterface $parent, $namespace, $parentClass, $warmupDir)
207197
{

Tests/Command/CacheClearCommand/CacheClearCommandTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ protected function tearDown()
4343
$this->fs->remove($this->rootDir);
4444
}
4545

46-
/**
47-
* @group legacy
48-
*/
4946
public function testCacheIsFreshAfterCacheClearedWithWarmup()
5047
{
5148
$input = new ArrayInput(array('cache:clear'));

0 commit comments

Comments
 (0)