Skip to content

Commit 1458ba8

Browse files
authored
N°7659 - Remove utils::GetClassesForInterface (#732)
1 parent 7138619 commit 1458ba8

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

application/utils.inc.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,21 +2802,6 @@ public static function GetUniqueId()
28022802
return static::$iNextId++;
28032803
}
28042804

2805-
/**
2806-
* @param string $sInterface
2807-
* @param string $sClassNameFilter
2808-
* @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 😅
2809-
*
2810-
* @return array classes are returned in the same order as the module dependency tree, so core classes on top
2811-
* @since 3.0.0
2812-
* @deprecated 3.2.0 Use {@see InterfaceDiscovery::FindItopClasses()} instead
2813-
*/
2814-
public static function GetClassesForInterface(string $sInterface, string $sClassNameFilter = '', $aExcludedPath = []): array
2815-
{
2816-
$oInterfaceDiscoveryService = InterfaceDiscovery::GetInstance();
2817-
return $oInterfaceDiscoveryService->FindItopClasses($sInterface);
2818-
}
2819-
28202805
/**
28212806
* @return array All keyboard shortcuts config as an array
28222807
* @throws \CoreException

tests/php-unit-tests/unitary-tests/application/applicationextension/ApplicationExtensionTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
class ApplicationExtensionTest extends ItopCustomDatamodelTestCase
1919
{
2020
protected const ENUM_API_CALL_METHOD_ENUMPLUGINS = 'MetaModel::EnumPlugins';
21-
protected const ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE = 'utils::GetClassesForInterface';
2221

2322
/**
2423
* @inheritDoc
@@ -143,10 +142,6 @@ public function ExtensionAPIRegisteredAndCalledProvider(): array
143142
\iOnClassInitialization::class,
144143
static::ENUM_API_CALL_METHOD_ENUMPLUGINS,
145144
],
146-
\iFieldRendererMappingsExtension::class => [
147-
\iFieldRendererMappingsExtension::class,
148-
static::ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE,
149-
],
150145
\iModuleExtension::class => [
151146
\iModuleExtension::class,
152147
static::ENUM_API_CALL_METHOD_ENUMPLUGINS,
@@ -159,14 +154,6 @@ public function ExtensionAPIRegisteredAndCalledProvider(): array
159154
\ModuleHandlerApiInterface::class,
160155
static::ENUM_API_CALL_METHOD_ENUMPLUGINS,
161156
],
162-
\iNewsroomProvider::class => [
163-
\iNewsroomProvider::class,
164-
static::ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE,
165-
],
166-
\iBackupExtraFilesExtension::class => [
167-
\iBackupExtraFilesExtension::class,
168-
static::ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE,
169-
],
170157
];
171158
}
172159
}

0 commit comments

Comments
 (0)