You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-6.3.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,11 @@ DependencyInjection
7
7
* Deprecate `PhpDumper` options `inline_factories_parameter` and `inline_class_loader_parameter`, use `inline_factories` and `inline_class_loader` instead
8
8
* Deprecate undefined and numeric keys with `service_locator` config, use string aliases instead
9
9
10
+
Filesystem
11
+
----------
12
+
13
+
* Deprecate calling `Filesystem::mirror()` with option `copy_on_windows`, use option `follow_symlinks` instead.
Copy file name to clipboardExpand all lines: src/Symfony/Component/Filesystem/Filesystem.php
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -503,13 +503,17 @@ public function makePathRelative(string $endPath, string $startPath): string
503
503
* @param array $options An array of boolean options
504
504
* Valid options are:
505
505
* - $options['override'] If true, target files newer than origin files are overwritten (see copy(), defaults to false)
506
-
* - $options['copy_on_windows'] Whether to copy files instead of links on Windows (see symlink(), defaults to false)
506
+
* - $options['copy_on_windows'] (deprecated) Whether to copy files instead of links on Windows (see symlink(), defaults to false)
507
+
* - $options['follow_symlinks'] Whether to copy files instead of links, where using symlinks in not working: windows, different drive, docker context not supporting symlinks (see symlink(), defaults to false)
507
508
* - $options['delete'] Whether to delete files that are not in the source directory (defaults to false)
trigger_deprecation('symfony/filesystem', '6.3', 'Calling "%s()" with option "copy_on_windows" is deprecated, use "follow_symlinks" option instead.', __METHOD__);
516
+
}
513
517
$targetDir = rtrim($targetDir, '/\\');
514
518
$originDir = rtrim($originDir, '/\\');
515
519
$originDirLen = \strlen($originDir);
@@ -534,10 +538,10 @@ public function mirror(string $originDir, string $targetDir, \Traversable $itera
0 commit comments