diff --git a/core/scripts/password-hash.sh b/core/scripts/password-hash.sh index 4036183..ad0ace6 100755 --- a/core/scripts/password-hash.sh +++ b/core/scripts/password-hash.sh @@ -83,7 +83,7 @@ include_once $core . '/includes/password.inc'; include_once $core . '/includes/bootstrap.inc'; -$password_hasher = \Drupal::getContainer('password'); +$password_hasher = \Drupal::service('password'); foreach ($passwords as $password) { print("\npassword: $password \t\thash: ". $password_hasher->hash($password) ."\n");