return $scaffold_ops;
} /**
* Copies all scaffold files from source to destination.
*/
public function scaffold() { // Recursively get the list of allowed packages. Only allowed packages
// may declare scaffold files. Note that the top-level composer.json file
// is implicitly allowed.
$allowed_packages =
$this->manageAllowedPackages->
getAllowedPackages();
if (empty($allowed_packages)) { $this->io->
write("Nothing scaffolded because no packages are allowed in the top-level composer.json file."
);
return;
} // Call any pre-scaffold scripts that may be defined.
$dispatcher =
new EventDispatcher($this->composer,
$this->io
);
$dispatcher->
dispatch(self::PRE_DRUPAL_SCAFFOLD_CMD
);
// Fetch the list of file mappings from each allowed package and normalize
// them.