function mymodule_libraries_info() {
$libraries['some-library'] = array(
'xautoload' => function ($adapter) {
/** @var \Drupal\xautoload\Adapter\LocalDirectoryAdapter $adapter */
// Scan sites/all/libraries/some-library/composer.json to look for
// autoload information.
$adapter->composerJson('composer.json'); // <---- THIS LINE
},
);
return $libraries;
}
Array indentation error, expected 4 spaces but found 6
Comments
Comment #2
solideogloria commentedMoving the comment outside the function causes it to work, though:
Comment #4
klausiThanks so much for reporting! I pushed a fix with your test case.