Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi!
When using the module in combination with the Libraries API it seems that the PSR-0 directory isn't correctly set.
I have the following library defined through hook_libraries_info();
/**
* Implements hook_libraries_info().
*/
function assetic_libraries_info() {
$libraries['assetic'] = array(
'name' => 'Assetic',
'vendor url' => 'https://github.com/kriswallsmith/assetic',
'download url' => 'https://github.com/kriswallsmith/assetic/tags',
'version arguments' => array(
'file' => 'CHANGELOG-1.0.md',
'pattern' => '/^([0-9a-zA-Z\.-]+)/',
'lines' => 2,
'cols' => 20,
),
'xautoload' => function($api) {
$api->namespaceRoot('Assetic', 'src');
},
);
return $libraries;
}
When I now check which path gets set in the xautoload_InjectedAPI_hookXautoload path it is:
src
, where I should expect sites/all/libraries/assetic/src
.
Comment | File | Size | Author |
---|---|---|---|
#3 | xautoload-7.x-2.x-hook_xautoload-processDir-stupid-bug-1826058-3.patch | 832 bytes | donquixote |
#2 | xautoload-incorrect_relative_path_for_libraries-1826058.patch | 1.23 KB | robinvdvleuten |
Comments
Comment #1
donquixote CreditAttribution: donquixote commentedHi,
thanks for the feedback.
I'm going to check later today what is going wrong.
If you want, you can also go ahead and debug it yourself.
The new feature was discussed here,
#1781794: Registration of additional PSR-0 folders in modules and sites/all/libraries
Comment #2
robinvdvleuten CreditAttribution: robinvdvleuten commentedI've created a small patch of the changes I made to get it working. If there is anything that I can do to help you to solve the issue, let me know.
Comment #3
donquixote CreditAttribution: donquixote commentedOuch, what a stupid bug!
Comment #4
donquixote CreditAttribution: donquixote commentedCommitted.
http://drupalcode.org/project/xautoload.git/commitdiff/ef9e32242e53c212e...
Comment #5
robinvdvleuten CreditAttribution: robinvdvleuten commentedThanks for solving it quickly :)