stable

Clone or download

Read-only

request #13519: Lazy load Tuleap CLI commands

With this contribution the Tuleap CLI commands are now only instanciated when they are being used. This is similar to what's being done for the HTTP routes. It avoids wasting resources of instantiating a big object graphs when only a part is needed. No functional changes are expected. Change-Id: Iacbf81a44c2a4a27e6b6056899d8d43e768a578f

Modified Files

Name
M plugins/git/include/Git/Gitolite/RegenerateConfigurationCommand.php +4 −2 Go to diff View file
M plugins/git/include/Git/Repository/RepositoriesWithObjectsOverTheLimitCommand.php +4 −2 Go to diff View file
M plugins/git/include/gitPlugin.class.php +16 −8 Go to diff View file
M plugins/tracker/include/Tracker/Notifications/TrackerForceNotificationsLevelCommand.php +4 −2 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +11 −8 Go to diff View file
M src/common/CLI/Application.php +2 −2 Go to diff View file
M src/common/CLI/CLICommandsCollector.php +14 −8 Go to diff View file
M src/common/CLI/Command/ImportProjectXMLCommand.php +3 −6 Go to diff View file
M src/common/CLI/Command/LaunchEveryMinuteJobCommand.php +1 −1 Go to diff View file
M src/common/CLI/Command/QueueSystemCheckCommand.php +1 −1 Go to diff View file
M src/utils/tuleap.php +56 −32 Go to diff View file
A tests/phpunit/common/CLI/CLICommandsCollectorTest.php +51 −0 Go to diff View file