You are here

function _acsf_init_include_exceptions in Acquia Cloud Site Factory Connector 8

Include exception class files when the autoloader is not available.

2 calls to _acsf_init_include_exceptions()
drush_acsf_init_pre_acsf_init in acsf_init/acsf_init.drush.inc
Implements drush_hook_pre_acsf_init().
drush_acsf_init_pre_acsf_init_verify in acsf_init/acsf_init.drush.inc
Implements drush_hook_pre_acsf_init_verify().

File

acsf_init/acsf_init.drush.inc, line 100
Provides drush commands to set up a site for Acquia Site Factory.

Code

function _acsf_init_include_exceptions() {
  $path = dirname(__DIR__) . '/src';
  $classes = [
    'AcsfException',
    'AcsfInitException',
    'AcsfInitHtaccessException',
  ];
  foreach ($classes as $class) {
    require_once "{$path}/{$class}.php";
  }
}