From 9d895930a9554a068cf2a7f40193b1bf0f19939f Mon Sep 17 00:00:00 2001 From: Vincent Garcia Date: Fri, 10 Jan 2025 10:01:12 +0100 Subject: [PATCH] :bug: Fix Theme catalog page & account service load --- config/services.yml | 1 + src/Accounts/Provider/AccountsDataProvider.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/services.yml b/config/services.yml index 8215196b1..043c41230 100755 --- a/config/services.yml +++ b/config/services.yml @@ -32,6 +32,7 @@ services: PrestaShop\Module\Mbo\Controller\Admin\ThemeCatalogController: autowire: true + autoconfigure: true PrestaShop\Module\Mbo\Controller\Admin\AddonsController: autowire: true diff --git a/src/Accounts/Provider/AccountsDataProvider.php b/src/Accounts/Provider/AccountsDataProvider.php index 397df5bf6..ee01af702 100644 --- a/src/Accounts/Provider/AccountsDataProvider.php +++ b/src/Accounts/Provider/AccountsDataProvider.php @@ -56,7 +56,7 @@ public function getAccountsToken(): string return ''; } - $accountsUserTokenRepository = $psAccountsModule->getService('\PrestaShop\Module\PsAccounts\Repository\UserTokenRepository'); + $accountsUserTokenRepository = $psAccountsModule->getService('PrestaShop\Module\PsAccounts\Repository\UserTokenRepository'); if (!$accountsUserTokenRepository) { return ''; }