Load php library via Composer

Created on 23 July 2018, over 6 years ago
Updated 16 July 2024, 5 months ago

Problem/Motivation

Right now the module requires to have the php library managed by `libraries`, however if we install the library via composer (and/or via composer_manager ) it will end up in a different place.
This means that the check in twilio_command will fail to detect the library, because it explicitly checks for libraries_load(TWILIO_LIBRARY), while this could be a fallback check to see if the classes are already loaded.

Proposed resolution

Check if the classes are already loaded in another way (for example autoload.php) before attempting to load via libraries module.

Remaining tasks

  • Evaluate possible regressions
  • Commit change
🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇳🇴Norway esolitos Trondheim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024