UserCustomPhpassParamsTestBundle.php

Definition of Drupal\user_custom_phpass_params_test\UserCustomPhpassParamsTestBundle

Namespace

Drupal\user_custom_phpass_params_test

File

drupal/core/modules/user/tests/user_custom_phpass_params_test/lib/Drupal/user_custom_phpass_params_test/UserCustomPhpassParamsTestBundle.php
View source
<?php

/**
 * @file
 * Definition of Drupal\user_custom_phpass_params_test\UserCustomPhpassParamsTestBundle
 */
namespace Drupal\user_custom_phpass_params_test;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class UserCustomPhpassParamsTestBundle extends Bundle {
  public function build(ContainerBuilder $container) {

    // Override the default password hashing service parameters
    $container
      ->register('password', 'Drupal\\Core\\Password\\PhpassHashedPassword')
      ->addArgument(19);
  }

}

Classes