Follow-up to #2272547: Invoke hook after composer dependencies are built

Proposal: introduce composer_manager_build_complete(), which fires after a composer_manager build is complete.

Use case:

  • User enables module A, which has a library dependency managed by composer_manager
  • Module A needs to fire off a few functions in hook_install(), but it cannot because dependencies are not yet build when that hook in invoked
  • Instead, Module A implements composer_manager_build_complete(). which is fired after dependencies are built. Necessary install functions are then called within that implementation.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cpliakas’s picture

As mentioned in parent issue, hook is named hook_composer_dependencies_install().

cpliakas’s picture

Status: Patch (to be ported) » Needs review
FileSize
1.5 KB
cpliakas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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