I'm currently using Blazy on a Drupal 7 website with the registry_autoload module. I'm also using the Form Builder module which now requires an upgrade to version 2.x and this version has a dependency on the psr0 autoloader module.

I'd rather not have 2 autoloaders installed although have ben told that this will be ok but my question is: Will Blazy work with the psr0 module instead of the registry_autoload module? And if so, do the installation instructions need to be updated?

Comments

vaccinemedia created an issue. See original summary.

gausarts’s picture

Title: Can Blazy work with psr0 autoloader module installed? » Support psr0 autoloader module
Category: Support request » Feature request

Technically blazy should work with that module, yet it is not officially supported by blazy, yet.

If you are feeling adventurous, you can check if the module exists, or better check its function named psr0_autoloader into functions blazy_install(), and blazy_system_info_alter().

Just be sure psr0 is listed first, so that you can uninstall the rest. And clear cache, of course.

Changing it to a feature. Patches are welcome. Thanks!

gausarts’s picture

Status: Active » Needs review
StatusFileSize
new4.81 KB

Sorry, it is just my personal preference, the order is psr0 at no. 2.

You might have 2 options:
1. If you already have registry_autoload in place, you might want to either uninstall Blazy first.
2. Or alternatively hack the Blazy module as seen in the patch to put your preferred module at first in the order, hence move psr0 to the first at the above mentioned 2 places.

Beware, you might lose all your Blazy configs should you choose to uninstall first. So hacking seems your best bet, then just revert after uninstalling registry_autoload.

  • gausarts committed 313d5aa on 7.x-1.x
    Issue #3092471 by gausarts, vaccinemedia: Support psr0 autoloader module
    
gausarts’s picture

Status: Needs review » Fixed

Sorry, the patch went to the wrong room:
#3064812: bio.ajax.min.js?v=7.x-1.0:1 Uncaught TypeError: Cannot read property 'prototype' of undefined at bio.ajax.min.js

This will do for now, though. Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.