8000 Made option to use symlink explicit in the output. This can clear up … · blahy/symfony@2c4a43d · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c4a43d

Browse files
committed
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.
1 parent 5631002 commit 2c4a43d

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