Verified Commit 7362bf47 authored by godotislate's avatar godotislate
Browse files

task: #3582510 Add SensitiveParameter attribute to InstallCommand::install()

By: prudloff
By: adhershmnair
By: sourav_paul
By: godotislate
parent 1ab4bfda
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -168,7 +168,7 @@ protected function isDrupalInstalled() {
   * @return int
   *   The command exit status.
   */
  protected function install($class_loader, SymfonyStyle $io, $profile, $langcode, $site_path, $site_name, string $recipe, ?string $password = NULL) {
  protected function install($class_loader, SymfonyStyle $io, $profile, $langcode, $site_path, $site_name, string $recipe, #[\SensitiveParameter] ?string $password = NULL) {
    $sqliteDriverNamespace = 'Drupal\\sqlite\\Driver\\Database\\sqlite';
    $password ??= Crypt::randomBytesBase64(12);
    $parameters = [