From 393c09f3d1ce4a32d33b604f5815de29e5bb23f1 Mon Sep 17 00:00:00 2001 From: Vincent Amstoutz Date: Mon, 9 Dec 2024 09:11:01 +0100 Subject: [PATCH] docs(entity): move from core to symfony --- core/index.md | 2 +- outline.yaml | 2 +- {core => symfony}/user.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename {core => symfony}/user.md (98%) diff --git a/core/index.md b/core/index.md index 23aee4631b3..4930af7f370 100644 --- a/core/index.md +++ b/core/index.md @@ -34,7 +34,7 @@ Here is the fully featured REST API you'll get in minutes: - Advanced [serialization](serialization.md) thanks to the Symfony Serializer Component (groups support, relation embedding, max depth...) - Automatic route registration - Automatic entry point generation giving access to all resources -- [User](user.md) support +- [User Management using Symfony](../symfony/user.md) - [JWT](jwt.md) and [OAuth](https://oauth.net/) support - Files and `\DateTime` and serialization and deserialization diff --git a/outline.yaml b/outline.yaml index b27f181c88e..68ce339f4a5 100644 --- a/outline.yaml +++ b/outline.yaml @@ -12,6 +12,7 @@ chapters: - migrate-from-fosrestbundle - fosuser-bundle - nelmio-api-doc + - user - title: "API Platform for Laravel" path: laravel items: @@ -64,7 +65,6 @@ chapters: - events - file-upload - jwt - - user - form-data - bootstrap - configuration diff --git a/core/user.md b/symfony/user.md similarity index 98% rename from core/user.md rename to symfony/user.md index dba55a90a52..51b5f94368b 100644 --- a/core/user.md +++ b/symfony/user.md @@ -1,4 +1,4 @@ -# User Entity +# User Entity with Symfony This documentation is based on the [official Symfony Documentation](https://symfony.com/doc/current/security/user_providers.html) with some API Platform integrations. @@ -219,7 +219,7 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader ## Creating and Updating User Password There's no built-in way for hashing the plain password on `POST`, `PUT` or `PATCH`. -Happily you can use the API Platform [state processors](state-processors.md) for auto-hashing plain passwords. +Happily you can use the API Platform [state processors](../core/state-processors.md) for auto-hashing plain passwords. First create a new state processor: