-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add preFileDownload event on packages.json fetch #2434
Conversation
private $rawData; | ||
private $minimalPackages; | ||
private $degradedMode = false; | ||
private $rootData; | ||
|
||
public function __construct(array $repoConfig, IOInterface $io, Config $config) | ||
public function __construct(array $repoConfig, IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a use case for making it nullable ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really, just following the existing ;)
I see a drawback in this PR: it introduces some cyclic dependency graph: Composer depends on RepositoryManager which depends on EventDispatcher, which depends on Composer. This is not really clean |
I just reorganized this code, in order to make possible to inject EventManager into RepositoryManager, but i saw it and your right, it's not really clean. |
👍 will allow us to secure our packages.json file on our instance of satis |
@stof it's not great but I'm not sure there is a way around this. |
Add preFileDownload event on packages.json fetch
Breaks entirely: #2444 |
(:-1:) Same problem here. |
👎 :-( |
Why does VcsRepository break standard repository composition? is this argument ($driver) really used? |
Hi,
In order to extend @naderman's work on pluggin system, this add a
PreFileDownloadEvent
dispatch when composer fetch packages.json (For ComposerRepository class).It's usefull for us, because we need to fetch it using
s3://
scheme.Thanks,
Jérémy