8000 merged branch rdohms/patch-3 (PR #3614) · blahy/symfony@7c6b288 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c6b288

Browse files
committed
merged branch rdohms/patch-3 (PR symfony#3614)
Commits ------- 2c4a43d Made option to use symlink explicit in the output. This can clear up any issues for example when running composer update to know if assets:install did a symlink or hard copy. Discussion ---------- Made assets:install output copy mode its using Made option to use symlink explicit in the output. This can clear up any issues for example when running composer update to know if assets:install did a symlink or hard copy. On a general it just makes communication a bit clearer on what is being executed. Further improvement is to make Composer install use the same process as was previously used on that server.
2 parents 5631002 + 2c4a43d commit 7c6b288

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
8383
// Create the bundles directory otherwise symlink will fail.
8484
$filesystem->mkdir($targetArg.'/bundles/', 0777);
8585

86+
$copyMethod = ($input->getOption('symlink')) ? "symlink":"hard copy";
87+
$output->writeln(sprintf("Installing assets using <comment>%s</comment> option", $copyMethod));
88+
8689
foreach ($this->getContainer()->get('kernel')->getBundles() as $bundle) {
8790
if (is_dir($originDir = $bundle->getPath().'/Resources/public')) {
8891
$bundlesDir = $targetArg.'/bundles/';

0 commit comments

Comments
 (0)
0