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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

donquixote’s picture

Hi,
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

robinvdvleuten’s picture

I'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.

donquixote’s picture

Status: Active » Needs review
FileSize
832 bytes

Ouch, what a stupid bug!

donquixote’s picture

robinvdvleuten’s picture

Status: Fixed » Closed (fixed)

Thanks for solving it quickly :)