From 04a89b5be33ad292a6210b99429da5da52afa164 Mon Sep 17 00:00:00 2001 From: bidi Date: Thu, 12 Dec 2024 15:13:22 +0200 Subject: [PATCH 1/2] updated anonimization Signed-off-by: bidi --- config/autoload/local.php.dist | 1 + src/User/src/Service/UserService.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index c496e1a..2eab4fa 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -59,4 +59,5 @@ return [ 'path' => realpath(__DIR__ . '/../../public/uploads/user'), ], ], + 'userAnonymizeAppend' => '', ]; diff --git a/src/User/src/Service/UserService.php b/src/User/src/Service/UserService.php index f6c2d31..3a16711 100644 --- a/src/User/src/Service/UserService.php +++ b/src/User/src/Service/UserService.php @@ -126,7 +126,7 @@ public function anonymizeUser(User $user): User $placeholder = $this->getAnonymousPlaceholder(); $user - ->setIdentity($placeholder) + ->setIdentity($placeholder . $this->config['userAnonymizeAppend']) ->getDetail() ->setFirstName($placeholder) ->setLastName($placeholder) From 5fe9517a4f0724dc517377ee391c9e9d5a9bd42d Mon Sep 17 00:00:00 2001 From: bidi Date: Thu, 12 Dec 2024 15:18:31 +0200 Subject: [PATCH 2/2] fixed linting Signed-off-by: bidi --- config/autoload/local.php.dist | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 2eab4fa..196f09d 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -19,14 +19,14 @@ $databases = [ ]; return [ - 'application' => [ + 'application' => [ 'name' => 'DotKernel API', 'url' => $baseUrl, 'versioning' => [ 'documentation_url' => 'https://docs.dotkernel.org/api-documentation/v5/core-features/versioning', ], ], - 'authentication' => [ + 'authentication' => [ 'private_key' => [ 'key_or_path' => getcwd() . '/data/oauth/private.key', 'key_permissions_check' => false, @@ -45,15 +45,15 @@ return [ 'message' => 'Invalid credentials.', ], ], - 'databases' => $databases, - 'doctrine' => [ + 'databases' => $databases, + 'doctrine' => [ 'connection' => [ 'orm_default' => [ 'params' => $databases['default'], ], ], ], - 'uploads' => [ + 'uploads' => [ 'user' => [ 'url' => $baseUrl . '/uploads/user', 'path' => realpath(__DIR__ . '/../../public/uploads/user'),