You are here

function composer_manager_relative_autoload_path in Composer Manager 7.2

Same name and namespace in other branches
  1. 6.2 composer_manager.writer.inc \composer_manager_relative_autoload_path()
  2. 6 composer_manager.writer.inc \composer_manager_relative_autoload_path()
  3. 7 composer_manager.writer.inc \composer_manager_relative_autoload_path()

Returns the path for the autoloaded directory or class relative to the directory containing the composer.json file.

Deprecated

Use composer_manager_relative_json_property() instead.

File

./composer_manager.writer.inc, line 391
Functions related to the creation of the consolidated composer.json file.

Code

function composer_manager_relative_autoload_path(&$path, $key, $module) {
  composer_manager_relative_json_property($path, array(
    'paths' => array(
      DRUPAL_ROOT . '/' . drupal_get_path('module', $module),
    ),
    'recurse' => FALSE,
  ));
}