interface CommandProvider
Commands Provider Interface
This capability will receive an array with 'composer' and 'io' keys as constructor argument. Those contain Composer\Composer and Composer\IO\IOInterface instances. It also contains a 'plugin' key containing the plugin instance that created the capability.
@author Jérémy Derussé <jeremy@derusse.com>
Hierarchy
- interface \Composer\Plugin\Capability\Capability
- interface \Composer\Plugin\Capability\CommandProvider extends \Composer\Plugin\Capability\Capability
Expanded class hierarchy of CommandProvider
All classes that implement CommandProvider
2 files declare their use of CommandProvider
- CommandProvider.php in composer/
Plugin/ Scaffold/ CommandProvider.php - Plugin.php in composer/
Plugin/ Scaffold/ Plugin.php
File
-
vendor/
composer/ composer/ src/ Composer/ Plugin/ Capability/ CommandProvider.php, line 25
Namespace
Composer\Plugin\CapabilityView source
interface CommandProvider extends Capability {
/**
* Retrieves an array of commands
*
* @return \Composer\Command\BaseCommand[]
*/
public function getCommands();
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
CommandProvider::getCommands | public | function | Retrieves an array of commands | 1 |