mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Added Capable plugins for a more future-proof Plugin API
Plugins can now present their capabilities to the PluginManager, through which it can act accordingly, thus making Plugin API more flexible, BC-friendly and decoupled.
This commit is contained in:
parent
7d7b3ccb2a
commit
2051d74774
7 changed files with 235 additions and 13 deletions
|
@ -23,14 +23,14 @@ use Composer\IO\IOInterface;
|
|||
interface PluginInterface
|
||||
{
|
||||
/**
|
||||
* Version number of the fake composer-plugin-api package
|
||||
* Version number of the internal composer-plugin-api package
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const PLUGIN_API_VERSION = '1.0.0';
|
||||
const PLUGIN_API_VERSION = '1.1.0';
|
||||
|
||||
/**
|
||||
* Apply plugin modifications to composer
|
||||
* Apply plugin modifications to Composer
|
||||
*
|
||||
* @param Composer $composer
|
||||
* @param IOInterface $io
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue