src/Robo/Commands/Deploy/DeployCommand.php
protected function composerInstall() {
    if (!$this->getConfigValue('deploy.build-dependencies')) {
      $this->logger->warning("Dependencies will not be built because deploy.build-dependencies is not enabled");
      $this->logger->warning("You should define a custom deploy.exclude_file to ensure that dependencies are copied from the root repository.");

      return FALSE;
    }
    $this->say("Rebuilding composer dependencies for production...");
    $this->taskDeleteDir([$this->deployDir . '/vendor'])
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->run();
    $this->taskFilesystemStack()
      ->copy($this->getConfigValue('repo.root') . '/composer.json', $this->deployDir . '/composer.json', TRUE)
      ->copy($this->getConfigValue('repo.root') . '/composer.lock', $this->deployDir . '/composer.lock', TRUE)
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->run();
    $command = 'composer install --no-dev --no-interaction --optimize-autoloader';
    if ($this->ignorePlatformReqs) {
      $command .= ' --ignore-platform-reqs';
    }
    $this->taskExecStack()->exec($command)
      ->stopOnFail()
      ->dir($this->deployDir)
      ->run();
  }
protected function composerInstall() {
    if (!$this->getConfigValue('deploy.build-dependencies')) {
      $this->logger->warning("Dependencies will not be built because deploy.build-dependencies is not enabled");
      $this->logger->warning("You should define a custom deploy.exclude_file to ensure that dependencies are copied from the root repository.");

      return FALSE;
    }
    $this->say("Rebuilding composer dependencies for production...");
    $this->taskDeleteDir([$this->deployDir . '/vendor'])
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->run();
    $this->taskFilesystemStack()
      ->copy($this->getConfigValue('repo.root') . '/composer.json', $this->deployDir . '/composer.json', TRUE)
      ->copy($this->getConfigValue('repo.root') . '/composer.lock', $this->deployDir . '/composer.lock', TRUE)
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->run();
    $command = 'composer install --no-dev --no-interaction --optimize-autoloader';
    if ($this->ignorePlatformReqs) {
      $command .= ' --ignore-platform-reqs';
    }
    $this->taskExecStack()->exec($command)
      ->stopOnFail()
      ->dir($this->deployDir)
      ->run();
  }
protected function composerInstall ( ) { if ( ! $ this -> getConfigValue ( 'deploy.build-dependencies' ) ) { $ this -> logger -> warning ( "Dependencies will not be built because deploy.build-dependencies is not enabled" ) ; $ this -> logger -> warning ( "You should define a custom deploy.exclude_file to ensure that dependencies are copied from the root repository." ) ; return FALSE ; } $ this -> say ( "Rebuilding composer dependencies for production..." ) ; $ this -> taskDeleteDir ( [ $ this -> deployDir . '/vendor' ] ) -> setVerbosityThreshold ( VerbosityThresholdInterface :: VERBOSITY_VERBOSE ) -> run ( ) ; $ this -> taskFilesystemStack ( ) -> copy ( $ this -> getConfigValue ( 'repo.root' ) . '/composer.json' , $ this -> deployDir . '/composer.json' , TRUE ) -> copy ( $ this -> getConfigValue ( 'repo.root' ) . '/composer.lock' , $ this -> deployDir . '/composer.lock' , TRUE ) -> setVerbosityThreshold ( VerbosityThresholdInterface :: VERBOSITY_VERBOSE ) -> run ( ) ; $ command = 'composer install --no-dev --no-interaction --optimize-autoloader' ; if ( $ this -> ignorePlatformReqs ) { $ command .= ' --ignore-platform-reqs' ; } $ this -> taskExecStack ( ) -> exec ( $ command ) -> stopOnFail ( ) -> dir ( $ this -> deployDir ) -> run ( ) ; }
Installs composer dependencies for artifact.
@param array $options
@return bool
@throws \Robo\Exception\TaskException
Installs composer dependencies for artifact .