From 84be56f078bc6b1aaa0370c6dd8bb4612885ca19 Mon Sep 17 00:00:00 2001 From: zerai Date: Sun, 3 Mar 2024 18:35:23 +0100 Subject: [PATCH] Fix SA ARK. --- phparkitect-baseline.json | 10 ++++++ psalm-baseline.xml | 34 +++++++++++++++++++ .../allowed_in_iam_adapters.php | 3 ++ 3 files changed, 47 insertions(+) diff --git a/phparkitect-baseline.json b/phparkitect-baseline.json index 84ff6c2..e931d8c 100644 --- a/phparkitect-baseline.json +++ b/phparkitect-baseline.json @@ -20,6 +20,16 @@ "line": 27, "error": "depends on App\\Repository\\UserRepository, but should not depend on these namespaces: App\\Controller\\*, App\\Service\\*, App\\Repository\\* because of component architecture" }, + { + "fqcn": "IdentityAccess\\AdapterForCli\\CreateMarketplaceOauthClientCommand", + "line": 88, + "error": "depends on App\\Entity\\OAuth2ClientProfile, but should not depend on classes outside namespace IdentityAccess\\Core because or namespaces in whitelist we want isolate our identity access Adapters from ever growing dependencies." + }, + { + "fqcn": "IdentityAccess\\AdapterForCli\\CreateStageMarketplaceOauthClientCommand", + "line": 88, + "error": "depends on App\\Entity\\OAuth2ClientProfile, but should not depend on classes outside namespace IdentityAccess\\Core because or namespaces in whitelist we want isolate our identity access Adapters from ever growing dependencies." + }, { "fqcn": "IdentityAccess\\AdapterForReadingAccounts\\AccountsDataProvider", "line": 26, diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 2cda8c7..8beee67 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,39 @@ + + + $oAuthClient + + + setRedirectUris(...array_map(static fn (string $redirectUri): RedirectUri => new RedirectUri($redirectUri), $redirectUriStrings)) + ->setGrants(...array_map(static fn (string $grant): Grant => new Grant($grant), $grantStrings)) + ->setScopes(...array_map(static fn (string $scope): Scope => new Scope($scope), $scopeStrings))]]> + + + createOauthClientForMarketplaceEngine + + + AbstractClient + + + + + $oAuthClient + + + setRedirectUris(...array_map(static fn (string $redirectUri): RedirectUri => new RedirectUri($redirectUri), $redirectUriStrings)) + ->setGrants(...array_map(static fn (string $grant): Grant => new Grant($grant), $grantStrings)) + ->setScopes(...array_map(static fn (string $scope): Scope => new Scope($scope), $scopeStrings))]]> + + + createOauthClientForMarketplaceEngine + + + AbstractClient + + getData()]]> diff --git a/tools/phparkitect/VendorDependencies/allowed_in_iam_adapters.php b/tools/phparkitect/VendorDependencies/allowed_in_iam_adapters.php index fa634eb..cd0857f 100644 --- a/tools/phparkitect/VendorDependencies/allowed_in_iam_adapters.php +++ b/tools/phparkitect/VendorDependencies/allowed_in_iam_adapters.php @@ -9,11 +9,14 @@ 'League\Bundle\OAuth2ServerBundle', 'Doctrine\DBAL\Connection', + 'Doctrine\ORM\EntityManagerInterface', 'Symfony\Bundle\FrameworkBundle\Controller\AbstractController', 'Symfony\Component\HttpFoundation\Request', 'Symfony\Component\HttpFoundation\Response', + 'Symfony\Component\Console', + 'Symfony\Component\Form', 'Symfony\Component\OptionsResolver\OptionsResolver',