function composer_manager_init in Composer Manager 6
Same name and namespace in other branches
- 6.2 composer_manager.module \composer_manager_init()
Implements hook_init().
File
- ./
composer_manager.module, line 12 - Provides consolidated management of third-party Composer-compatible packages required by contributed modules.
Code
function composer_manager_init() {
try {
composer_manager_register_autoloader();
} catch (\RuntimeException $e) {
// @see https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_is_cli/7
if (!(!isset($_SERVER['SERVER_SOFTWARE']) && (php_sapi_name() == 'cli' || is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0))) {
watchdog('composer_manager', $e
->getMessage(), array(), WATCHDOG_ERROR);
}
}
}