I understand that the plan is for phpbb4 to manage extensions using composer. So I can understand why phpBB itself will need composer installers seeing as it is pointing to the ext/ folder. I don't understand why the extensions themselves will need the installers seeing as, relative to the extension, the specified path for 'phpbb-extension' would be incorrect. In other words, from my extension directory, if I require another phpBB extension (say foo_vendor/bar_extension), it gets installed in phpBB/ext/my-vendor/my-extension/ext/foo_vendor/bar_extension instead of the expected phpBB/ext/foo_vendor/bar_extension.
So I have the following questions:
- Is there a need for another customer installer for extensions to use so they can install other extensions relative to the current extension?
- should extensions provide custom paths if they require other extensions?
- Could the composer installer for 'phpbb-extension' be made to determine if it is in phpBB or in an extension and provide the appropriate path?
- Or do I have this whole thing wrong?