Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CommandProvider.php

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\Capability
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal