function drush_composer_manager_update_files in Composer Manager 7.2
Same name and namespace in other branches
- 7 composer_manager.drush.inc \drush_composer_manager_update_files()
Require new files added by Composer libraries.
Parameters
string $composer: Path to the Composer library.
1 call to drush_composer_manager_update_files()
- drush_composer_manager_update_autoloader in ./
composer_manager.drush.inc - Add new autoloader paths to the Class Loader.
File
- ./
composer_manager.drush.inc, line 230 - Drush hook implementations for the Composer Manager module.
Code
function drush_composer_manager_update_files($composer) {
$autoload_files = $composer . '/autoload_files.php';
if (file_exists($autoload_files)) {
$updated_files = (require $autoload_files);
foreach ($updated_files as $file) {
if (file_exists($file)) {
require_once $file;
}
}
}
}