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

Breadcrumb

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

function CheckPlatformReqsCommand::configure

Overrides Command::configure

File

vendor/composer/composer/src/Composer/Command/CheckPlatformReqsCommand.php, line 27

Class

CheckPlatformReqsCommand

Namespace

Composer\Command

Code

protected function configure() : void {
    $this->setName('check-platform-reqs')
        ->setDescription('Check that platform requirements are satisfied')
        ->setDefinition([
        new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables checking of require-dev packages requirements.'),
        new InputOption('lock', null, InputOption::VALUE_NONE, 'Checks requirements only from the lock file, not from installed packages.'),
        new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text or json', 'text', [
            'json',
            'text',
        ]),
    ])
        ->setHelp(<<<EOT
Checks that your PHP and extensions versions match the platform requirements of the installed packages.

Unlike update/install, this command will ignore config.platform settings and check the real platform packages so you can be certain you have the required platform dependencies.

<info>php composer.phar check-platform-reqs</info>

EOT
);
}
RSS feed
Powered by Drupal