Comments

Jieyyal created an issue. See original summary.

jieyyal’s picture

Remove Composer Manager and use library to load the web-push-libs/web-push-php library..

jieyyal’s picture

Here comes the patch:

jieyyal’s picture

Assigned: jieyyal » Unassigned
Status: Active » Needs review
jieyyal’s picture

Update the patch

esolitos’s picture

Status: Needs review » Needs work

I think we should support both composer_manager and libraries, it's not hard to do and allows to use both approaches.

jieyyal’s picture

Hi @esolitos,

The patch only removed composer_manager from module dependencies.

I think composer_manager still works if we don't have library exists.

tmin’s picture

The patch seems to be working without issues for me (haven't done extensive testing yet).

The only (potential) problem that I would like to mention is that, depending on how the user installed the library, there may not be an autoload file in the root of the directory. For example if you download the library and run composer install the autoload file is located in vendor/ directory.

Either we would have to add some documentation on the .install file's error on how exactly to add the library if not using the composer_manager module or at least mention that the library should have an autoload.php file (or softlink to the file) in the root of the library directory.

Other than that, thanks a lot for this since the composer_manager module has been acting completely strange for me and I was trying to avoid installing it at all costs.