CommandProvider.php

Same filename in other branches
  1. 8.9.x composer/Plugin/Scaffold/CommandProvider.php
  2. 10 composer/Plugin/Scaffold/CommandProvider.php
  3. 11.x composer/Plugin/Scaffold/CommandProvider.php

Namespace

Drupal\Composer\Plugin\Scaffold

File

composer/Plugin/Scaffold/CommandProvider.php

View source
<?php

namespace Drupal\Composer\Plugin\Scaffold;

use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;

/**
 * List of all commands provided by this package.
 *
 * @internal
 */
class CommandProvider implements CommandProviderCapability {
    
    /**
     * {@inheritdoc}
     */
    public function getCommands() {
        return [
            new ComposerScaffoldCommand(),
        ];
    }

}

Classes

Title Deprecated Summary
CommandProvider List of all commands provided by this package.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.