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.
This commit is contained in:
Rafael Dohms 2012-03-16 12:37:18 +01:00
parent 5631002cd0
commit 2c4a43d91d

View File

@ -83,6 +83,9 @@ EOT
// Create the bundles directory otherwise symlink will fail.
$filesystem->mkdir($targetArg.'/bundles/', 0777);
$copyMethod = ($input->getOption('symlink')) ? "symlink":"hard copy";
$output->writeln(sprintf("Installing assets using <comment>%s</comment> option", $copyMethod));
foreach ($this->getContainer()->get('kernel')->getBundles() as $bundle) {
if (is_dir($originDir = $bundle->getPath().'/Resources/public')) {
$bundlesDir = $targetArg.'/bundles/';