stable

Clone or download

Read-only

refactor: Convert Issues basic project info to PHP code

This is a follow-up to git #tuleap/stable/decc087dfa2c2ddc2d8485708071e0e873b020a4 The focus here is put on the project basic information: * unix-name * full-name * description * access * list of services Since Issues project does not have long-description nor upgroups, those are ignored for now. Entry points for this contribution: * tools/utils/xml-templates-to-php/src/ConvertProjectCommand.php to extract PHP code from an existing xml file * src/common/Project/Registration/Template/IssuesTemplate.php that includes the new PHP definition of the project (from deleted file tools/utils/setup_templates/issues/project.xml). No functional changes expected. Part of request #22651: Convert Issue XML template to PHP code Change-Id: I8b6d94ba0d8d64e36ed3603c1d99b7008148d6f9

Modified Files

Name
M src/common/Project/Registration/Template/IssuesTemplate.php +26 −3 Go to diff View file
A src/common/Project/Service/XML/XMLService.php +47 −0 Go to diff View file
A src/common/Project/XML/XMLProject.php +73 −0 Go to diff View file
A test/unit/common/Project/XML/XMLProjectTest.php +57 −0 Go to diff View file
A tests/unit/Tuleap/Tools/Xml2Php/Project/ProjectConvertorTest.php +72 −0 Go to diff View file
A tests/unit/common/Project/Service/XML/XMLServiceTest.php +54 −0 Go to diff View file
D tools/utils/setup_templates/issues/project.xml +0 −27 Go to diff View file
M tools/utils/xml-templates-to-php/index.php +2 −0 Go to diff View file
A tools/utils/xml-templates-to-php/src/ConvertProjectCommand.php +96 −0 Go to diff View file
A tools/utils/xml-templates-to-php/src/Project/ProjectConvertor.php +126 −0 Go to diff View file