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

Breadcrumb

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

function InitCommand::hasDependencies

Parameters

array<string, string|array<string>> $options:

1 call to InitCommand::hasDependencies()
InitCommand::execute in vendor/composer/composer/src/Composer/Command/InitCommand.php

File

vendor/composer/composer/src/Composer/Command/InitCommand.php, line 632

Class

InitCommand
@author Justin Rainbow <justin.rainbow@gmail.com> @author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Command

Code

private function hasDependencies(array $options) : bool {
    $requires = (array) $options['require'];
    $devRequires = isset($options['require-dev']) ? (array) $options['require-dev'] : [];
    return !empty($requires) || !empty($devRequires);
}

API Navigation

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