Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #N
Problem/Motivation
Currently this is hard coded to sites/all/libraries.
function graphapi_loader() {
$loader = drupal_classloader();
/*
* TODO: this is somehow necessary but what if other modules
* need this library too?
*/
$loader->add('Fhaculty', DRUPAL_ROOT . '/sites/all/libraries/graph/lib');
$loader->add('Fhaculty', DRUPAL_ROOT . '/sites/all/libraries/graph-uml/src', TRUE);
}
hook_library_info is not to the rescue.
Proposed resolution
- Make path configurable at the very least. That will cause WSOD
Remaining tasks
- Check with #2083547: PSR-4: Putting it all together
Comments
Comment #1
clemens.tolboomMarks #2165403: Installed on a pristine site the demos fail with a WSOD as a duplicated
Comment #2
clemens.tolboomXREF #2068145: Extend libraries to use Drupal's build in class loader for PSR0 compatible libraries
Comment #3
clemens.tolboomAdd different XREFs
- #1475510: Remove external dependencies from the core repo and let Composer manage the dependencies instead
- #1920666: Allow additional external libraries with composer
thanks to @Mile23 in #2083547-162: PSR-4: Putting it all together