naderman/composer-aws

Does not work with create-project

logicalor opened this issue · 3 comments

As per issue title, the plugin doesn't work with the create-project command. This seems to be a limitation of Composer in that the CreateProjectCommand class doesn't provide a preDownload hook for the plugin to insert its s3 handling into. Not sure if there is any workaround (other than to not use create-project!).

@logicalor good find! Don't use create project myself so never noticed. Can you report the missing hook as a bug on composer?

Sure thing, I'm about halfway to a solution which involves updating Composer's CreateProjectCommand class to inject an EventDispatcher when instantiating repositories. I'll update here once I submit a PR to the Composer project.

My PR with the fix for this issue has been merged into the composer 1.10 roadmap branch, so I presume a release containing the fix will be published in the not-too-distant future :)