thecodingmachine / nodejs-installer

An installer package that let's you install NodeJS and NPM as a Composer dependency.
107 stars 28 forks source link

Increase priority for events to install before other plugins #12

Closed nsams closed 9 years ago

nsams commented 9 years ago

Fixes compatibility with https://github.com/koala-framework/composer-extra-assets.

An optional priority integer (higher equals more important, and therefore that the listener will be triggered earlier) that determines when a listener is triggered versus other listeners (defaults to 0). If two listeners have the same priority, they are executed in the order that they were added to the dispatcher.

Changing the priority from -1 to 1 will make sure this event is executed before composer-extra-assets, which uses priority 0.

Fixes #11

moufmouf commented 9 years ago

Damn'it! Higher = more important? Completely failed to detect that. Thanks for the PR!