stable

Clone or download

Read-only

chore: Remove constant based events from AD plugin

Non-class constant based events like `addHook(AGILEDASHBOARD_EXPORT_XML)` cannot be converted to attribute based events because there is no way to know if the constant exist. Therefore we have to convert to class constant first. No functional changes. Part of request #31547: Simplify hook listening for plugins Part 2 Change-Id: Ia686e89a05d67ef45ed70df9f461e4a99f8b6e8d

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Planning/Admin/PlanningEditionPresenterBuilder.php +1 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/BacklogItemRepresentationFactory.class.php +10 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/ItemRepresentationBuilder.php +2 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Milestone/MilestoneRepresentationBuilder.php +11 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/MilestoneResource.class.php +25 −11 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v2/BacklogItemRepresentationFactory.class.php +1 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/XMLFullStructureExporter.php +4 −5 Go to diff View file
M plugins/agiledashboard/include/Planning/MilestoneSelectorController.class.php +12 −1 Go to diff View file
M plugins/agiledashboard/include/Planning/PlanningController.class.php +30 −3 Go to diff View file
M plugins/agiledashboard/include/agiledashboardPlugin.php +3 −1 Go to diff View file
M plugins/agiledashboard/include/constants.php +0 −111 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/Admin/PlanningEditionPresenterBuilderTest.php +1 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/MilestoneSelectorControllerTest.php +1 −1 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/XMLFullStructureExporterTest.php +4 −2 Go to diff View file
M plugins/cardwall/include/cardwallPlugin.php +12 −18 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +5 −9 Go to diff View file