$exitCode = 1;
$rows[] =
[sprintf('<fg=red;options=bold>%s</>', '\\' === \DIRECTORY_SEPARATOR ? 'ERROR' : "\xE2\x9C\x98" /* HEAVY BALLOT X (U+2718) */
),
$message,
$e->
getMessage()];
} } // remove the assets of the bundles that no longer exist
if (!
$input->
getOption('no-cleanup'
) &&
is_dir($bundlesDir)) { $dirsToRemove = Finder::
create()->
depth(0
)->
directories()->
exclude($validAssetDirs)->
in($bundlesDir);
$this->filesystem->
remove($dirsToRemove);
} if ($rows) { $io->
table(['', 'Bundle', 'Method / Error'
],
$rows);
} if (0 !==
$exitCode) { $io->
error('Some errors occurred while installing assets.'
);
} else { if ($copyUsed) { $io->
note('Some assets were installed via copy. If you make changes to these assets you have to run this command again.'
);
} $io->
success($rows ? 'All assets were successfully installed.' : 'No assets were provided by any bundle.'
);
}