public function AcsfInitCommands::preInit in Acquia Cloud Site Factory Connector 8.2
Add the necessary classes.
@hook pre-command *
File
- acsf_init/
src/ Commands/ AcsfInitCommands.php, line 53
Class
- AcsfInitCommands
- Provides drush commands to set up a codebase for Acquia Cloud Site Factory.
Namespace
Drush\CommandsCode
public function preInit() {
$path = dirname(dirname(dirname(__DIR__))) . '/src';
$classes = [
'AcsfException',
'AcsfInitException',
'AcsfInitHtaccessException',
];
foreach ($classes as $class) {
require_once "{$path}/{$class}.php";
}
}