You are here

function composer_autoload_init in Composer Autoload 7

Same name and namespace in other branches
  1. 6 composer_autoload.module \composer_autoload_init()

Implements hook_init().

File

./composer_autoload.module, line 13
Provides primary Drupal hook implementations.

Code

function composer_autoload_init() {

  // Retrieve all the autoload.php paths.
  $loaders = composer_autoload_get_autoload_paths();

  // Include each autoload.php file.
  foreach ($loaders as $loader) {
    include_once $loader;
  }
}