Question: do we need additional core support?

Open
#8 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
backend, tooling

Research direction

Start by reviewing the dependency behavior described for Composer Manager users, including the proposed hook_module_dependencies_alter() and the hook_autoload_info() problem. Compare the needs of hard dependencies in contrib with Composer-managed libraries, and define a core-compatible approach before determining what implementation and tests would be needed.

Written by the indexing model from the issue text.

Description

Using composer manager shouldn't require switching from hard to soft dependencies in contrib. If a module needs a library, that needs to be a hard dependency. So, how do we keep that hard for all the Installer module users, but make it soft for composer manager users?

Do we need some kind of hook_module_deoendencies_alter()?

I was thinking about this for PHPExcel,

We also have a problem with hook_autload_info() that may need to be addressed.

I know composer "isn't core's problem" but breaking contrib is, so I think this is a reasonable conversation to have :) Maybe we have a conversation at the next Backdrop LIVE?

Dominant language
PHP
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from backdrop-contrib/composer_manager

All issues in backdrop-contrib/composer_manager

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.