@@ -439,19 +439,60 @@ protected function getUpdateRootPath(): string
439439 return $ this ->container ->getParameter ('kernel.project_dir ' );
440440 }
441441
442- protected function getPluginDirectoryList (): array
442+ protected static function pluginNameReplacements (): array
443443 {
444- $ pluginDir = $ this ->container ->getParameter ('kernel.project_dir ' ).'/public/plugin ' ;
445-
446- $ finder = new Finder ();
447- $ finder ->directories ()->in ($ pluginDir )->depth ('== 0 ' );
448-
449- $ directories = [];
450-
451- foreach ($ finder as $ entry ) {
452- $ directories [] = $ entry ->getFilename ();
453- }
454-
455- return $ directories ;
444+ return [
445+ 'bbb ' => 'Bbb ' ,
446+ 'before_login ' => 'BeforeLogin ' ,
447+ 'buycourses ' => 'BuyCourses ' ,
448+ 'card_game ' => 'CardGame ' ,
449+ 'check_extra_field_author_company ' => 'CheckExtraFieldAuthorCompany ' ,
450+ 'cleandeletedfiles ' => 'CleanDeletedFiles ' ,
451+ 'courseblock ' => 'CourseBlock ' ,
452+ 'coursehomenotify ' => 'CourseHomeNotify ' ,
453+ 'courselegal ' => 'CourseLegal ' ,
454+ 'customcertificate ' => 'CustomCertificate ' ,
455+ 'customfooter ' => 'CustomFooter ' ,
456+ 'dashboard ' => 'Dashboard ' ,
457+ 'dictionary ' => 'Dictionary ' ,
458+ 'embedregistry ' => 'EmbedRegistry ' ,
459+ 'exercise_signature ' => 'ExerciseSignature ' ,
460+ 'ext_auth_chamilo_logout_button_behaviour ' => 'ExtAuthChamiloLogoutButtonBehaviour ' ,
461+ 'externalnotificationconnect ' => 'ExternalNotificationConnect ' ,
462+ 'extramenufromwebservice ' => 'ExtraMenuFromWebservice ' ,
463+ 'google_maps ' => 'GoogleMaps ' ,
464+ 'grading_electronic ' => 'GradingElectronic ' ,
465+ 'h5pimport ' => 'H5pImport ' ,
466+ 'hello_world ' => 'HelloWorld ' ,
467+ 'ims_lti ' => 'ImsLti ' ,
468+ 'justification ' => 'Justification ' ,
469+ 'learning_calendar ' => 'LearningCalendar ' ,
470+ 'lti_provider ' => 'LtiProvider ' ,
471+ 'maintenancemode ' => 'MaintenanceMode ' ,
472+ 'migrationmoodle ' => 'MigrationMoodle ' ,
473+ 'nosearchindex ' => 'NoSearchIndex ' ,
474+ 'notebookteacher ' => 'NotebookTeacher ' ,
475+ 'onlyoffice ' => 'Onlyoffice ' ,
476+ 'pausetraining ' => 'PauseTraining ' ,
477+ 'pens ' => 'Pens ' ,
478+ 'positioning ' => 'Positioning ' ,
479+ 'questionoptionsevaluation ' => 'QuestionOptionsEvaluation ' ,
480+ 'redirection ' => 'Redirection ' ,
481+ 'resubscription ' => 'Resubscription ' ,
482+ 'rss ' => 'Rss ' ,
483+ 'search_course ' => 'SearchCourse ' ,
484+ 'show_regions ' => 'ShowRegions ' ,
485+ 'show_user_info ' => 'ShowUserInfo ' ,
486+ 'static ' => 'Static ' ,
487+ 'studentfollowup ' => 'StudentFollowUp ' ,
488+ 'surveyexportcsv ' => 'SurveyExportCsv ' ,
489+ 'surveyexporttxt ' => 'SurveyExportTxt ' ,
490+ 'test2pdf ' => 'Test2Pdf ' ,
491+ 'toplinks ' => 'TopLinks ' ,
492+ 'tour ' => 'Tour ' ,
493+ 'userremoteservice ' => 'UserRemoteService ' ,
494+ 'xapi ' => 'XApi ' ,
495+ 'zoom ' => 'Zoom ' ,
496+ ];
456497 }
457498}
0 commit comments