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

Appearance settings

Commit 6628318

Browse filesBrowse files
committed
bug #26358 [FrameworkBundle] Silence "Failed to remove directory" on cache:clear (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Silence "Failed to remove directory" on cache:clear | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #2600 | License | MIT | Doc PR | - Let's improve the experience of ppl (see old linked issue). This warning is just noise to most. Commits ------- 3ba624a [FrameworkBundle] Silence "Failed to remove directory" on cache:clear
2 parents b3f807c + 3ba624a commit 6628318
Copy full SHA for 6628318

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
156156
try {
157157
$fs->remove($oldCacheDir);
158158
} catch (IOException $e) {
159-
$io->warning($e->getMessage());
159+
if ($output->isVerbose()) {
160+
$io->warning($e->getMessage());
161+
}
160162
}
161163

162164
if ($output->isVerbose()) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.