|
40 | 40 | use Glpi\System\RequirementsManager;
|
41 | 41 | use Glpi\Toolbox\ArrayNormalizer;
|
42 | 42 | use Glpi\UI\ThemeManager;
|
43 |
| -use SimplePie\SimplePie; |
44 | 43 | use Symfony\Component\HttpFoundation\Request;
|
45 | 44 |
|
46 | 45 | /**
|
@@ -858,281 +857,6 @@ public function showSystemInformations()
|
858 | 857 | }
|
859 | 858 |
|
860 | 859 |
|
861 |
| - /** |
862 |
| - * Retrieve full directory of a lib |
863 |
| - * |
864 |
| - * @param $libstring object, class or function |
865 |
| - * |
866 |
| - * @return false|string the path or false |
867 |
| - * |
868 |
| - * @since 9.1 |
869 |
| - */ |
870 |
| - public static function getLibraryDir($libstring) |
871 |
| - { |
872 |
| - if (is_object($libstring)) { |
873 |
| - return realpath(dirname((new ReflectionObject($libstring))->getFileName())); |
874 |
| - } elseif (class_exists($libstring) || interface_exists($libstring)) { |
875 |
| - return realpath(dirname((new ReflectionClass($libstring))->getFileName())); |
876 |
| - } elseif (function_exists($libstring)) { |
877 |
| - // Internal function have no file name |
878 |
| - $path = (new ReflectionFunction($libstring))->getFileName(); |
879 |
| - return ($path ? realpath(dirname($path)) : false); |
880 |
| - } |
881 |
| - return false; |
882 |
| - } |
883 |
| - |
884 |
| - |
885 |
| - /** |
886 |
| - * get libraries list |
887 |
| - * |
888 |
| - * @param $all (default false) |
889 |
| - * @return array dependencies list |
890 |
| - * |
891 |
| - * @since 9.4 |
892 |
| - */ |
893 |
| - public static function getLibraries($all = false) |
894 |
| - { |
895 |
| - // use same name that in composer.json |
896 |
| - $deps = [ |
897 |
| - [ 'name' => 'symfony/mailer', |
898 |
| - 'check' => 'Symfony/Mailer', |
899 |
| - ], |
900 |
| - [ 'name' => 'simplepie/simplepie', |
901 |
| - 'version' => SimplePie::VERSION, |
902 |
| - 'check' => SimplePie::class, |
903 |
| - ], |
904 |
| - [ 'name' => 'tecnickcom/tcpdf', |
905 |
| - 'version' => TCPDF_STATIC::getTCPDFVersion(), |
906 |
| - 'check' => 'TCPDF', |
907 |
| - ], |
908 |
| - [ 'name' => 'tecnickcom/tc-lib-barcode', |
909 |
| - 'check' => 'Com\\Tecnick\\Barcode\\Barcode', |
910 |
| - ], |
911 |
| - [ 'name' => 'sabre/dav', |
912 |
| - 'check' => 'Sabre\\DAV\\Version', |
913 |
| - ], |
914 |
| - [ 'name' => 'sabre/http', |
915 |
| - 'check' => 'Sabre\\HTTP\\Version', |
916 |
| - ], |
917 |
| - [ 'name' => 'sabre/uri', |
918 |
| - 'check' => 'Sabre\\Uri\\Version', |
919 |
| - ], |
920 |
| - [ 'name' => 'sabre/vobject', |
921 |
| - 'check' => 'Sabre\\VObject\\Component', |
922 |
| - ], |
923 |
| - [ 'name' => 'laminas/laminas-i18n', |
924 |
| - 'check' => 'Laminas\\I18n\\Module', |
925 |
| - ], |
926 |
| - [ 'name' => 'monolog/monolog', |
927 |
| - 'check' => 'Monolog\\Logger', |
928 |
| - ], |
929 |
| - [ 'name' => 'sebastian/diff', |
930 |
| - 'check' => 'SebastianBergmann\\Diff\\Diff', |
931 |
| - ], |
932 |
| - [ 'name' => 'donatj/phpuseragentparser', |
933 |
| - 'check' => 'donatj\\UserAgent\\UserAgentParser', |
934 |
| - ], |
935 |
| - [ 'name' => 'elvanto/litemoji', |
936 |
| - 'check' => 'LitEmoji\\LitEmoji', |
937 |
| - ], |
938 |
| - [ 'name' => 'gettext/languages', |
939 |
| - 'check' => 'Gettext\\Languages\\Language', |
940 |
| - ], |
941 |
| - [ 'name' => 'symfony/console', |
942 |
| - 'check' => 'Symfony\\Component\\Console\\Application', |
943 |
| - ], |
944 |
| - [ 'name' => 'symfony/config', |
945 |
| - 'check' => 'Symfony\\Component\\Config\\Loader\\LoaderInterface', |
946 |
| - ], |
947 |
| - [ 'name' => 'symfony/dependency-injection', |
948 |
| - 'check' => 'Symfony\\Component\\DependencyInjection\\ContainerInterface', |
949 |
| - ], |
950 |
| - [ 'name' => 'symfony/event-dispatcher', |
951 |
| - 'check' => 'Symfony\\Component\\EventDispatcher\\EventDispatcherInterface', |
952 |
| - ], |
953 |
| - [ 'name' => 'symfony/filesystem', |
954 |
| - 'check' => 'Symfony\\Component\\Filesystem\\Filesystem', |
955 |
| - ], |
956 |
| - [ 'name' => 'symfony/framework-bundle', |
957 |
| - 'check' => 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle', |
958 |
| - ], |
959 |
| - [ 'name' => 'symfony/http-foundation', |
960 |
| - 'check' => 'Symfony\\Component\\HttpFoundation\\Request', |
961 |
| - ], |
962 |
| - [ 'name' => 'symfony/http-kernel', |
963 |
| - 'check' => 'Symfony\\Component\\HttpKernel\\KernelInterface', |
964 |
| - ], |
965 |
| - [ 'name' => 'symfony/routing', |
966 |
| - 'check' => 'Symfony\\Component\\Routing\\RouterInterface', |
967 |
| - ], |
968 |
| - [ 'name' => 'scssphp/scssphp', |
969 |
| - 'check' => 'ScssPhp\ScssPhp\Compiler', |
970 |
| - ], |
971 |
| - [ 'name' => 'laminas/laminas-mail', |
972 |
| - 'check' => 'Laminas\\Mail\\Protocol\\Imap', |
973 |
| - ], |
974 |
| - [ 'name' => 'laminas/laminas-mime', |
975 |
| - 'check' => 'Laminas\\Mime\\Mime', |
976 |
| - ], |
977 |
| - [ 'name' => 'rlanvin/php-rrule', |
978 |
| - 'check' => 'RRule\\RRule', |
979 |
| - ], |
980 |
| - [ 'name' => 'ramsey/uuid', |
981 |
| - 'check' => 'Ramsey\\Uuid\\Uuid', |
982 |
| - ], |
983 |
| - [ 'name' => 'phpoffice/phpspreadsheet', |
984 |
| - 'check' => 'PhpOffice\\PhpSpreadsheet\\Spreadsheet', |
985 |
| - ], |
986 |
| - [ 'name' => 'psr/log', |
987 |
| - 'check' => 'Psr\\Log\\LoggerInterface', |
988 |
| - ], |
989 |
| - [ 'name' => 'psr/simple-cache', |
990 |
| - 'check' => 'Psr\\SimpleCache\\CacheInterface', |
991 |
| - ], |
992 |
| - [ 'name' => 'psr/cache', |
993 |
| - 'check' => 'Psr\\Cache\\CacheItemPoolInterface', |
994 |
| - ], |
995 |
| - [ 'name' => 'psr/container', |
996 |
| - 'check' => 'Psr\\Container\\ContainerInterface', |
997 |
| - ], |
998 |
| - [ 'name' => 'league/csv', |
999 |
| - 'check' => 'League\\Csv\\Writer', |
1000 |
| - ], |
1001 |
| - [ 'name' => 'mexitek/phpcolors', |
1002 |
| - 'check' => 'Mexitek\\PHPColors\\Color', |
1003 |
| - ], |
1004 |
| - [ 'name' => 'guzzlehttp/guzzle', |
1005 |
| - 'check' => 'GuzzleHttp\\Client', |
1006 |
| - ], |
1007 |
| - [ 'name' => 'guzzlehttp/psr7', |
1008 |
| - 'check' => 'GuzzleHttp\\Psr7\\Response', |
1009 |
| - ], |
1010 |
| - [ 'name' => 'glpi-project/inventory_format', |
1011 |
| - 'check' => 'Glpi\Inventory\Converter', |
1012 |
| - ], |
1013 |
| - [ 'name' => 'wapmorgan/unified-archive', |
1014 |
| - 'check' => 'wapmorgan\\UnifiedArchive\\UnifiedArchive', |
1015 |
| - ], |
1016 |
| - [ 'name' => 'paragonie/sodium_compat', |
1017 |
| - 'check' => 'ParagonIE_Sodium_Compat', |
1018 |
| - ], |
1019 |
| - [ 'name' => 'symfony/cache', |
1020 |
| - 'check' => 'Symfony\\Component\\Cache\\Psr16Cache', |
1021 |
| - ], |
1022 |
| - [ 'name' => 'html2text/html2text', |
1023 |
| - 'check' => 'Html2Text\\Html2Text', |
1024 |
| - ], |
1025 |
| - [ |
1026 |
| - 'name' => 'symfony/css-selector', |
1027 |
| - 'check' => 'Symfony\\Component\\CssSelector\\CssSelectorConverter', |
1028 |
| - ], |
1029 |
| - [ 'name' => 'symfony/dom-crawler', |
1030 |
| - 'check' => 'Symfony\\Component\\DomCrawler\\Crawler', |
1031 |
| - ], |
1032 |
| - [ 'name' => 'twig/twig', |
1033 |
| - 'check' => 'Twig\\Environment', |
1034 |
| - ], |
1035 |
| - [ 'name' => 'twig/string-extra', |
1036 |
| - 'check' => 'Twig\\Extra\\String\\StringExtension', |
1037 |
| - ], |
1038 |
| - [ 'name' => 'symfony/polyfill-ctype', |
1039 |
| - 'check' => 'ctype_digit', |
1040 |
| - ], |
1041 |
| - [ 'name' => 'symfony/polyfill-iconv', |
1042 |
| - 'check' => 'iconv', |
1043 |
| - ], |
1044 |
| - [ 'name' => 'symfony/polyfill-mbstring', |
1045 |
| - 'check' => 'mb_list_encodings', |
1046 |
| - ], |
1047 |
| - [ |
1048 |
| - 'name' => 'symfony/polyfill-php83', |
1049 |
| - 'check' => 'json_validate', |
1050 |
| - ], |
1051 |
| - [ |
1052 |
| - 'name' => 'league/oauth2-client', |
1053 |
| - 'check' => 'League\\OAuth2\\Client\\Provider\\AbstractProvider', |
1054 |
| - ], |
1055 |
| - [ |
1056 |
| - 'name' => 'league/oauth2-google', |
1057 |
| - 'check' => 'League\\OAuth2\\Client\\Provider\\Google', |
1058 |
| - ], |
1059 |
| - [ |
1060 |
| - 'name' => 'thenetworg/oauth2-azure', |
1061 |
| - 'check' => 'TheNetworg\\OAuth2\\Client\\Provider\\Azure', |
1062 |
| - ], |
1063 |
| - [ |
1064 |
| - 'name' => 'league/commonmark', |
1065 |
| - 'check' => 'League\\CommonMark\\Extension\\CommonMark\\CommonMarkCoreExtension', |
1066 |
| - ], |
1067 |
| - [ |
1068 |
| - 'name' => 'egulias/email-validator', |
1069 |
| - 'check' => 'Egulias\\EmailValidator\\EmailValidator', |
1070 |
| - ], |
1071 |
| - [ |
1072 |
| - 'name' => 'symfony/mime', |
1073 |
| - 'check' => 'Symfony\\Mime\\Message', |
1074 |
| - ], |
1075 |
| - [ |
1076 |
| - 'name' => 'apereo/phpcas', |
1077 |
| - 'check' => 'phpCAS', |
1078 |
| - ], |
1079 |
| - [ |
1080 |
| - 'name' => 'bacon/bacon-qr-code', |
1081 |
| - 'check' => 'BaconQrCode\\Writer', |
1082 |
| - ], |
1083 |
| - [ |
1084 |
| - 'name' => 'robthree/twofactorauth', |
1085 |
| - 'check' => 'RobThree\\Auth\\TwoFactorAuth', |
1086 |
| - ], |
1087 |
| - [ |
1088 |
| - 'name' => 'ralouphie/getallheaders', |
1089 |
| - 'check' => 'getallheaders', |
1090 |
| - ], |
1091 |
| - [ |
1092 |
| - 'name' => 'symfony/html-sanitizer', |
1093 |
| - 'check' => 'Symfony\\Component\\HtmlSanitizer\\HtmlSanitizer', |
1094 |
| - ], |
1095 |
| - [ |
1096 |
| - 'name' => 'league/oauth2-server', |
1097 |
| - 'check' => 'League\\OAuth2\\Server\\AuthorizationServer', |
1098 |
| - ], |
1099 |
| - [ |
1100 |
| - 'name' => 'league/html-to-markdown', |
1101 |
| - 'check' => 'League\\HTMLToMarkdown\\HtmlConverter', |
1102 |
| - ], |
1103 |
| - [ |
1104 |
| - 'name' => 'twig/markdown-extra', |
1105 |
| - 'check' => 'Twig\\Extra\\Markdown\\LeagueMarkdown', |
1106 |
| - ], |
1107 |
| - [ |
1108 |
| - 'name' => 'webonyx/graphql-php', |
1109 |
| - 'check' => 'GraphQL\\GraphQL', |
1110 |
| - ], |
1111 |
| - [ |
1112 |
| - 'name' => 'phpdocumentor/reflection-docblock', |
1113 |
| - 'check' => 'phpDocumentor\Reflection\DocBlock', |
1114 |
| - ], |
1115 |
| - [ |
1116 |
| - 'name' => 'symfony/property-access', |
1117 |
| - 'check' => 'Symfony\Component\PropertyAccess\PropertyAccess', |
1118 |
| - ], |
1119 |
| - [ |
1120 |
| - 'name' => 'symfony/serializer', |
1121 |
| - 'check' => 'Symfony\Component\Serializer\Serializer', |
1122 |
| - ], |
1123 |
| - [ |
1124 |
| - 'name' => 'symfony/property-info', |
1125 |
| - 'check' => 'Symfony\Component\PropertyInfo\Type', |
1126 |
| - ], |
1127 |
| - [ |
1128 |
| - 'name' => 'symfony/error-handler', |
1129 |
| - 'check' => 'Symfony\Component\ErrorHandler\ErrorHandler', |
1130 |
| - ], |
1131 |
| - ]; |
1132 |
| - return $deps; |
1133 |
| - } |
1134 |
| - |
1135 |
| - |
1136 | 860 | /**
|
1137 | 861 | * Dropdown for global management config
|
1138 | 862 | *
|
|
0 commit comments