Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf751ac9

Browse files
Merge branch '3.3' into 3.4
* 3.3: Revert "feature#21038 [FrameworkBundle] deprecated cache:clear with warmup (fabpot)"
2 parents9306fec +4fdaa3a commitf751ac9

File tree

5 files changed

+0
-20
lines changed

5 files changed

+0
-20
lines changed

‎UPGRADE-3.3.md‎

Lines changed: 0 additions & 3 deletions
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‎

Lines changed: 0 additions & 3 deletions
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‎

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

‎src/Symfony/Bundle/FrameworkBundle/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
protectedfunctionwarmup($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
protectedfunctiongetTempKernel(KernelInterface$parent,$namespace,$parentClass,$warmupDir)
249239
{

‎src/Symfony/Bundle/FrameworkBundle/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
publicfunctiontestCacheIsFreshAfterCacheClearedWithWarmup()
5047
{
5148
$input =newArrayInput(array('cache:clear'));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp