From b651b89b862a7a766781fa13d721b89fbe15a765 Mon Sep 17 00:00:00 2001 From: kiseragi Date: Sun, 30 Nov 2025 21:55:22 +0900 Subject: [PATCH] Fix outdated Authentication plugin version and namespace for DefaultPasswordHasher 1) Updated composer command from ^2.0 to ^3.0. 2) Updated DefaultPasswordHasher namespace from use Cake\Auth\DefaultPasswordHasher; to Authentication\PasswordHasher\DefaultPasswordHasher --- ja/tutorials-and-examples/blog-auth-example/auth.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ja/tutorials-and-examples/blog-auth-example/auth.rst b/ja/tutorials-and-examples/blog-auth-example/auth.rst index 0883fac5d3..ee5df6969c 100644 --- a/ja/tutorials-and-examples/blog-auth-example/auth.rst +++ b/ja/tutorials-and-examples/blog-auth-example/auth.rst @@ -121,7 +121,7 @@ composerを使ってAuthenticationプラグインをインストールします .. code-block:: console - composer require "cakephp/authentication:^2.0" + composer require "cakephp/authentication:^3.0" パスワードハッシュの追加 @@ -134,7 +134,7 @@ composerを使ってAuthenticationプラグインをインストールします // src/Model/Entity/User.php namespace App\Model\Entity; - use Cake\Auth\DefaultPasswordHasher; + use Authentication\PasswordHasher\DefaultPasswordHasher; use Cake\ORM\Entity; class User extends Entity