From 7d70a89d513fc4e5554b7c0a73e3240f45a3b710 Mon Sep 17 00:00:00 2001 From: shahabgohar Date: Mon, 11 Aug 2025 12:39:05 +0500 Subject: [PATCH] Fix #689 - Fixed invalid import of ItemNotFoundException --- core/backend/Data/LegacyHandler/PresetListDataHandlers.php | 2 +- .../ActionAvailabilityChecker/ActionAvailabilityChecker.php | 2 +- core/backend/Process/Service/ProcessHandlerRegistry.php | 2 +- core/backend/Statistics/Service/StatisticsProviderRegistry.php | 2 +- core/backend/SystemConfig/LegacyHandler/SystemConfigHandler.php | 2 +- core/backend/SystemConfig/LegacyHandler/SystemConfigMappers.php | 2 +- .../UserPreferences/LegacyHandler/UserPreferenceHandler.php | 2 +- .../UserPreferences/LegacyHandler/UserPreferencesMappers.php | 2 +- tests/unit/core/legacy/AppListStringsHandlerTest.php | 2 +- tests/unit/core/legacy/AppStringsHandlerTest.php | 2 +- tests/unit/core/legacy/ModStringsHandlerTest.php | 2 +- tests/unit/core/legacy/SystemConfig/SystemConfigMappersTest.php | 2 +- tests/unit/core/legacy/SystemConfigHandlerTest.php | 2 +- tests/unit/core/legacy/UserPreferencesHandlerTest.php | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/core/backend/Data/LegacyHandler/PresetListDataHandlers.php b/core/backend/Data/LegacyHandler/PresetListDataHandlers.php index 98747a1af8..c3e918f37c 100644 --- a/core/backend/Data/LegacyHandler/PresetListDataHandlers.php +++ b/core/backend/Data/LegacyHandler/PresetListDataHandlers.php @@ -28,7 +28,7 @@ namespace App\Data\LegacyHandler; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; class PresetListDataHandlers { diff --git a/core/backend/Engine/Service/ActionAvailabilityChecker/ActionAvailabilityChecker.php b/core/backend/Engine/Service/ActionAvailabilityChecker/ActionAvailabilityChecker.php index da9191d0dc..a5637bfee8 100644 --- a/core/backend/Engine/Service/ActionAvailabilityChecker/ActionAvailabilityChecker.php +++ b/core/backend/Engine/Service/ActionAvailabilityChecker/ActionAvailabilityChecker.php @@ -27,7 +27,7 @@ namespace App\Engine\Service\ActionAvailabilityChecker; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; class ActionAvailabilityChecker { diff --git a/core/backend/Process/Service/ProcessHandlerRegistry.php b/core/backend/Process/Service/ProcessHandlerRegistry.php index 0d491d7f6e..1a5a7cfbdf 100644 --- a/core/backend/Process/Service/ProcessHandlerRegistry.php +++ b/core/backend/Process/Service/ProcessHandlerRegistry.php @@ -29,7 +29,7 @@ namespace App\Process\Service; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; class ProcessHandlerRegistry { diff --git a/core/backend/Statistics/Service/StatisticsProviderRegistry.php b/core/backend/Statistics/Service/StatisticsProviderRegistry.php index 0cf367e5ee..487b0a4bb4 100644 --- a/core/backend/Statistics/Service/StatisticsProviderRegistry.php +++ b/core/backend/Statistics/Service/StatisticsProviderRegistry.php @@ -28,7 +28,7 @@ namespace App\Statistics\Service; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; class StatisticsProviderRegistry { diff --git a/core/backend/SystemConfig/LegacyHandler/SystemConfigHandler.php b/core/backend/SystemConfig/LegacyHandler/SystemConfigHandler.php index 7525926d0d..afad49465d 100644 --- a/core/backend/SystemConfig/LegacyHandler/SystemConfigHandler.php +++ b/core/backend/SystemConfig/LegacyHandler/SystemConfigHandler.php @@ -27,7 +27,7 @@ namespace App\SystemConfig\LegacyHandler; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; use App\Currency\LegacyHandler\CurrencyHandler; use App\Engine\LegacyHandler\LegacyHandler; use App\Engine\LegacyHandler\LegacyScopeState; diff --git a/core/backend/SystemConfig/LegacyHandler/SystemConfigMappers.php b/core/backend/SystemConfig/LegacyHandler/SystemConfigMappers.php index ec468071e0..f514898da9 100644 --- a/core/backend/SystemConfig/LegacyHandler/SystemConfigMappers.php +++ b/core/backend/SystemConfig/LegacyHandler/SystemConfigMappers.php @@ -27,7 +27,7 @@ namespace App\SystemConfig\LegacyHandler; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; class SystemConfigMappers { diff --git a/core/backend/UserPreferences/LegacyHandler/UserPreferenceHandler.php b/core/backend/UserPreferences/LegacyHandler/UserPreferenceHandler.php index fe97536da7..b9e5e257c5 100644 --- a/core/backend/UserPreferences/LegacyHandler/UserPreferenceHandler.php +++ b/core/backend/UserPreferences/LegacyHandler/UserPreferenceHandler.php @@ -27,7 +27,7 @@ namespace App\UserPreferences\LegacyHandler; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; use App\UserPreferences\Entity\UserPreference; use App\Engine\LegacyHandler\LegacyHandler; use App\Engine\LegacyHandler\LegacyScopeState; diff --git a/core/backend/UserPreferences/LegacyHandler/UserPreferencesMappers.php b/core/backend/UserPreferences/LegacyHandler/UserPreferencesMappers.php index d0a9c11f38..be7ff48b7b 100644 --- a/core/backend/UserPreferences/LegacyHandler/UserPreferencesMappers.php +++ b/core/backend/UserPreferences/LegacyHandler/UserPreferencesMappers.php @@ -27,7 +27,7 @@ namespace App\UserPreferences\LegacyHandler; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; class UserPreferencesMappers { diff --git a/tests/unit/core/legacy/AppListStringsHandlerTest.php b/tests/unit/core/legacy/AppListStringsHandlerTest.php index 90478d3980..348b9654e9 100644 --- a/tests/unit/core/legacy/AppListStringsHandlerTest.php +++ b/tests/unit/core/legacy/AppListStringsHandlerTest.php @@ -28,7 +28,7 @@ namespace App\Tests\unit\core\legacy; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; use App\Languages\Entity\AppListStrings; use App\Languages\LegacyHandler\AppListStringsHandler; use App\Tests\UnitTester; diff --git a/tests/unit/core/legacy/AppStringsHandlerTest.php b/tests/unit/core/legacy/AppStringsHandlerTest.php index 26f250738b..8f4bdaf056 100644 --- a/tests/unit/core/legacy/AppStringsHandlerTest.php +++ b/tests/unit/core/legacy/AppStringsHandlerTest.php @@ -28,7 +28,7 @@ namespace App\Tests\unit\core\legacy; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; use App\Languages\Entity\AppStrings; use App\Tests\UnitTester; use Codeception\Test\Unit; diff --git a/tests/unit/core/legacy/ModStringsHandlerTest.php b/tests/unit/core/legacy/ModStringsHandlerTest.php index f670422351..ec94d8b641 100644 --- a/tests/unit/core/legacy/ModStringsHandlerTest.php +++ b/tests/unit/core/legacy/ModStringsHandlerTest.php @@ -28,7 +28,7 @@ namespace App\Tests\unit\core\legacy; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; use App\Languages\Entity\ModStrings; use App\Tests\UnitTester; use Codeception\Test\Unit; diff --git a/tests/unit/core/legacy/SystemConfig/SystemConfigMappersTest.php b/tests/unit/core/legacy/SystemConfig/SystemConfigMappersTest.php index ae7e1b5143..8b0dd89185 100644 --- a/tests/unit/core/legacy/SystemConfig/SystemConfigMappersTest.php +++ b/tests/unit/core/legacy/SystemConfig/SystemConfigMappersTest.php @@ -28,7 +28,7 @@ namespace App\Tests\unit\core\legacy\SystemConfig; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; use App\Module\LegacyHandler\ModuleNameMapperHandler; use App\SystemConfig\LegacyHandler\DefaultModuleConfigMapper; use App\SystemConfig\LegacyHandler\SystemConfigMappers; diff --git a/tests/unit/core/legacy/SystemConfigHandlerTest.php b/tests/unit/core/legacy/SystemConfigHandlerTest.php index 57cd70b52a..7e6ff7f908 100644 --- a/tests/unit/core/legacy/SystemConfigHandlerTest.php +++ b/tests/unit/core/legacy/SystemConfigHandlerTest.php @@ -28,7 +28,7 @@ namespace App\Tests\unit\core\legacy; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; use App\Engine\LegacyHandler\ActionNameMapperHandler; use App\Routes\LegacyHandler\ClassicViewRoutingExclusionsHandler; use App\Currency\LegacyHandler\CurrencyHandler; diff --git a/tests/unit/core/legacy/UserPreferencesHandlerTest.php b/tests/unit/core/legacy/UserPreferencesHandlerTest.php index 12a25502c5..7f00fcfc4a 100644 --- a/tests/unit/core/legacy/UserPreferencesHandlerTest.php +++ b/tests/unit/core/legacy/UserPreferencesHandlerTest.php @@ -28,7 +28,7 @@ namespace App\Tests\unit\core\legacy; -use ApiPlatform\Core\Exception\ItemNotFoundException; +use ApiPlatform\Exception\ItemNotFoundException; use App\Tests\UnitTester; use AspectMock\Test; use Codeception\Test\Unit;