1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00
Commit graph

30 commits

Author SHA1 Message Date
Rob Bast
a1427d7fd6 replace all occurences in code and comments 2015-09-24 16:32:36 +02:00
nevvermind
994b1324bc fix alignment 2015-06-02 19:58:21 +01:00
nevvermind
3032f0a538 Refactor based on code review
- Move the version api getter to the PluginManager And make it such that it can be mocked, but not pollute the public interface. That means "protected" visibility.
- The plugin api version constant should still be used throughout the code.
- Use different fixtures class names
- Use regex possessive quantifiers for performance
- Use full words for readability
2015-06-02 17:40:32 +01:00
nevvermind
eb2aa14830 Make plugins have actual constraints instead of fixed versions
Instead of developing plugins against a single, fixed Plugin API version - `"composer-plugin-api": "1.0.0"`, this change will allow plugin developers to use versions like `"composer-plugin-api": "~1.1"` or `"composer-plugin-api": ">=2.1 <3.0"`, aka actual Composer-compatible constraints.

Only the "1.0", "1.0.0" and "1.0.0" Plugin API versions will be regarded as BC versions, and internally converted to "^1.0"; every other declared version string will be kept as it is.

Because of this new constraint flexibility, plugin version mismatches will be skipped, which means those plugin will NOT be registered to the system. Previously, a mismatch triggered a warning, but plugins were still registered.
2015-06-02 14:10:09 +01:00
nevvermind
8e79a3766d Added phpdocs + change to yoda comparison 2015-05-30 01:38:14 +01:00
Jordi Boggiano
45b1f356c2 Add debug output when a plugin is loaded 2015-02-27 14:31:27 +00:00
Rob Bast
cb336a5416 Implement writeError throughout Composer 2015-02-25 11:00:35 +01:00
Jordi Boggiano
2b16a73659 Load plugins before purging packages, fixes #3557 2014-12-15 20:34:23 +00:00
Jordi Boggiano
0627d846a5 PluginManager refactoring, fixes #3550 2014-12-13 18:54:42 +00:00
Jordi Boggiano
663cda8827 Merge pull request #3142 from francoispluchino/plugin-load-only-one-time
Register plugin only one time when it's present in global and project mode
2014-09-30 15:19:55 +01:00
François Pluchino
11b945046f Register plugin only one time when it's present in global and project mode 2014-07-21 15:11:38 +02:00
François Pluchino
8b5c00bff0 Fix phpdoc 2014-07-16 15:17:38 +02:00
Pascal Borreli
2f4df9d459 Fixed typos 2013-12-27 11:51:01 +00:00
Beau Simensen
5caee06c44 Make PluginManager::loadRepository public 2013-12-16 09:21:00 -06:00
Beau Simensen
9ca884944c Skip aliases packages when looking for plugins. 2013-12-15 23:14:58 -06:00
Martin Hasoň
e949038c0f Removed duplication of logic of an installation manager in a plugin manager 2013-09-12 14:31:27 +02:00
Nils Adermann
689e3056fa Plugin API requirements should be for plugins only, not installers 2013-09-08 18:03:05 +02:00
Nils Adermann
92b1ee2f7a Add a composer-plugin-api platform package and plugins must require it 2013-09-05 15:47:05 +02:00
Nils Adermann
bf08019292 Load plugins and installers prior to checking installed packages 2013-08-31 16:20:38 +02:00
Nils Adermann
5993450d5a Load plugin code from global vendor dir correctly 2013-08-30 14:11:20 +02:00
Nils Adermann
c5c180fdd2 Load plugins from global vendor dir too 2013-08-30 14:04:16 +02:00
Nils Adermann
a8c0170a91 Revert constructor arguments to old order for custom installers 2013-08-30 12:51:41 +02:00
Nils Adermann
3e1519cde0 Complete missing docblocks and fix incorrect ones 2013-08-30 12:51:41 +02:00
Nils Adermann
b9c5758670 Make composer/io part of the activate plugin API rather than constructor args 2013-08-30 12:51:41 +02:00
Nils Adermann
cd66328d68 Autoload dependencies of plugins using a pool of only the local repo 2013-08-30 12:51:41 +02:00
Nils Adermann
9402a9fb3c Plugins receive composer and io objects on construction already 2013-08-30 12:51:41 +02:00
Nils Adermann
919a190153 Add an EventSubscriberInterface which may also be implemented by plugins 2013-08-30 12:51:41 +02:00
Nils Adermann
3960edd64e Turn EventDispatcher into generic solution handling plugins as well 2013-08-30 12:51:41 +02:00
Nils Adermann
2f43e9aefb Load installed plugins at appropriate time and adapt tests accordingly 2013-08-30 12:51:40 +02:00
Nils Adermann
eb966d347f Implement a plugin manager and interface, update installer plugin tests 2013-08-30 12:51:40 +02:00