I have a problem with dependencies in my custom module.
I'm using drupal-composer and I'm able to install my own module with the composer.json. My module comes from custom Git repository.
At this moment, though, I'm unaware of any working way to get my custom modules dependencies installed at all. I can add them one by one to the composer.json
, though they do not appear into right namespaces after that, but let's just disregard that because I would really like to be able to specify them into my custom module and get them installed automatically. This is because I will be having multiple modules with multiple dependencies. Also, some of these dependencies will be from my own repositories, but that should not make any difference. And to be specific, at this point I'm trying to add a custom git repository containing some PHP source files that I need for the services exposed from my modules.
I have also tried installing modules from Drupal packagist and their dependencies are all nicely downloaded.
So is there any way to specify these dependencies into my own module and how to get them working? I have added them to my modules composer.json
, but that does not seem to have any effect. They also need to be there when I run my PHPUnit tests.
Also I'm aware of the composer-manager plugin for Drush, but at this point, (due to other requirements) it is not an option.