/**
* @inheritdoc
*/
public function prepare($buildDir, LocalApplication $app, CliConfig $config, array $settings = [])
{
$this->app = $app;
$this->appRoot = $app->getRoot();
$this->documentRoot = $app->getDocumentRoot();
$this->settings = $settings;
$this->config = $config;
if ($this->config->get('local.copy_on_windows')) {
$this->fsHelper->setCopyOnWindows(true);
}
$this->ignoredFiles[] = $this->config->get('local.web_root');
$this->setBuildDir($buildDir);
if (!empty($settings['clone'])) {
$settings['copy'] = true;
}
$this->copy = !empty($settings['copy']);
$this->fsHelper->setRelativeLinks(empty($settings['abslinks']));
}