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

Breadcrumb

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

function ClearCacheCommand::configure

Overrides Command::configure

File

vendor/composer/composer/src/Composer/Command/ClearCacheCommand.php, line 26

Class

ClearCacheCommand
@author David Neilsen <petah.p@gmail.com>

Namespace

Composer\Command

Code

protected function configure() : void {
    $this->setName('clear-cache')
        ->setAliases([
        'clearcache',
        'cc',
    ])
        ->setDescription('Clears composer\'s internal package cache')
        ->setDefinition([
        new InputOption('gc', null, InputOption::VALUE_NONE, 'Only run garbage collection, not a full cache clear'),
    ])
        ->setHelp(<<<EOT
The <info>clear-cache</info> deletes all cached packages from composer's
cache directory.

Read more at https://getcomposer.org/doc/03-cli.md#clear-cache-clearcache-cc
EOT
);
}

API Navigation

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