Skip to content

Commit 2b16423

Browse files
Merge branch '3.3' into 3.4
* 3.3: Revert "feature #21038 [FrameworkBundle] deprecated cache:clear with warmup (fabpot)"
2 parents 66a98b8 + 25bc5e5 commit 2b16423

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
@@ -37,7 +37,6 @@ CHANGELOG
3737
the same helpers as the `Controller` class, but does not allow accessing the dependency
3838
injection container, in order to encourage explicit dependency declarations.
3939
* Added support for the `controller.service_arguments` tag, for injecting services into controllers' actions
40-
* Deprecated `cache:clear` with warmup (always call it with `--no-warmup`)
4140
* Changed default configuration for
4241
assets/forms/validation/translation/serialization/csrf from `canBeEnabled()` to
4342
`canBeDisabled()` when Flex is used

Command/CacheClearCommand.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
111111
if ($input->getOption('no-warmup')) {
112112
$this->filesystem->rename($realCacheDir, $oldCacheDir);
113113
} else {
114-
$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.';
115-
116-
@trigger_error($warning, E_USER_DEPRECATED);
117-
118-
$io->warning($warning);
119-
120114
$this->warmupCache($input, $output, $realCacheDir, $oldCacheDir);
121115
}
122116

@@ -168,8 +162,6 @@ private function warmupCache(InputInterface $input, OutputInterface $output, $re
168162
* @param string $warmupDir
169163
* @param string $realCacheDir
170164
* @param bool $enableOptionalWarmers
171-
*
172-
* @internal to be removed in 4.0
173165
*/
174166
protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = true)
175167
{
@@ -242,8 +234,6 @@ protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = tr
242234
* @param string $warmupDir
243235
*
244236
* @return KernelInterface
245-
*
246-
* @internal to be removed in 4.0
247237
*/
248238
protected function getTempKernel(KernelInterface $parent, $namespace, $parentClass, $warmupDir)
249239
{

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)