From 1458ba877b990997968fd9b19d04067ec203f971 Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass <95754414+bdalsass@users.noreply.github.com> Date: Tue, 12 Aug 2025 14:06:26 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07659=20-=20Remove=20utils::GetClassesFor?= =?UTF-8?q?Interface=20(#732)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/utils.inc.php | 15 --------------- .../ApplicationExtensionTest.php | 13 ------------- 2 files changed, 28 deletions(-) diff --git a/application/utils.inc.php b/application/utils.inc.php index 932a7f4f4..5492c9268 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -2802,21 +2802,6 @@ TXT return static::$iNextId++; } - /** - * @param string $sInterface - * @param string $sClassNameFilter - * @param array $aExcludedPath Reg. exp. of the paths to exclude. Note that backslashes (typically for Windows env.) need to be 4 backslashes, 2 for the escaping backslash, 2 for the actual backslash 😅 - * - * @return array classes are returned in the same order as the module dependency tree, so core classes on top - * @since 3.0.0 - * @deprecated 3.2.0 Use {@see InterfaceDiscovery::FindItopClasses()} instead - */ - public static function GetClassesForInterface(string $sInterface, string $sClassNameFilter = '', $aExcludedPath = []): array - { - $oInterfaceDiscoveryService = InterfaceDiscovery::GetInstance(); - return $oInterfaceDiscoveryService->FindItopClasses($sInterface); - } - /** * @return array All keyboard shortcuts config as an array * @throws \CoreException diff --git a/tests/php-unit-tests/unitary-tests/application/applicationextension/ApplicationExtensionTest.php b/tests/php-unit-tests/unitary-tests/application/applicationextension/ApplicationExtensionTest.php index 44657908c..50cd21bee 100644 --- a/tests/php-unit-tests/unitary-tests/application/applicationextension/ApplicationExtensionTest.php +++ b/tests/php-unit-tests/unitary-tests/application/applicationextension/ApplicationExtensionTest.php @@ -18,7 +18,6 @@ use utils; class ApplicationExtensionTest extends ItopCustomDatamodelTestCase { protected const ENUM_API_CALL_METHOD_ENUMPLUGINS = 'MetaModel::EnumPlugins'; - protected const ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE = 'utils::GetClassesForInterface'; /** * @inheritDoc @@ -143,10 +142,6 @@ class ApplicationExtensionTest extends ItopCustomDatamodelTestCase \iOnClassInitialization::class, static::ENUM_API_CALL_METHOD_ENUMPLUGINS, ], - \iFieldRendererMappingsExtension::class => [ - \iFieldRendererMappingsExtension::class, - static::ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE, - ], \iModuleExtension::class => [ \iModuleExtension::class, static::ENUM_API_CALL_METHOD_ENUMPLUGINS, @@ -159,14 +154,6 @@ class ApplicationExtensionTest extends ItopCustomDatamodelTestCase \ModuleHandlerApiInterface::class, static::ENUM_API_CALL_METHOD_ENUMPLUGINS, ], - \iNewsroomProvider::class => [ - \iNewsroomProvider::class, - static::ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE, - ], - \iBackupExtraFilesExtension::class => [ - \iBackupExtraFilesExtension::class, - static::ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE, - ], ]; } }