Skip to content

Commit f751ac9

Browse files
Merge branch '3.3' into 3.4
* 3.3: Revert "feature symfony#21038 [FrameworkBundle] deprecated cache:clear with warmup (fabpot)"
2 parents 9306fec + 4fdaa3a commit f751ac9

File tree

5 files changed

+0
-20
lines changed

5 files changed

+0
-20
lines changed

UPGRADE-3.3.md

-3
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ Form
167167
FrameworkBundle
168168
---------------
169169

170-
* The `cache:clear` command should always be called with the `--no-warmup` option.
171-
Warmup should be done via the `cache:warmup` command.
172-
173170
* [BC BREAK] The "framework.trusted_proxies" configuration option and the corresponding "kernel.trusted_proxies"
174171
parameter have been removed. Use the Request::setTrustedProxies() method in your front controller instead.
175172

UPGRADE-4.0.md

-3
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,6 @@ FrameworkBundle
284284

285285
* The `validator.mapping.cache.doctrine.apc` service has been removed.
286286

287-
* The `cache:clear` command does not warmup the cache anymore. Warmup should
288-
be done via the `cache:warmup` command.
289-
290287
* The "framework.trusted_proxies" configuration option and the corresponding "kernel.trusted_proxies" parameter have been removed. Use the `Request::setTrustedProxies()` method in your front controller instead.
291288

292289
* The default value of the `framework.workflows.[name].type` configuration options is now `state_machine`.

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

-1
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

src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

-10
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
{

src/Symfony/Bundle/FrameworkBundle/Tests/Command/CacheClearCommand/CacheClearCommandTest.php

-3
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)