GrumPHP v0.18.0 Release Notes
Release Date: 2020-02-25 // about 4 years ago-
Total issues resolved: 9
- ๐ง 501: FR: remove need for dedicated class when running same task twice with different configuration thanks to @keradus
- 579: FR: Ability to give shell task a label thanks to @Jamesking56
- ๐ง [682: WIP\ Rework task system thanks to @veewee
- 711: Improved tasks system thanks to @veewee
- ๐ 731: Remove tasks from readme thanks to @Landerstraeten
- โ 732: Rewrite ant tests thanks to @Landerstraeten
- ๐ 737: Fixed label output thanks to @benndt
- ๐ 739: Added support for phar executables thanks to @BrentRobert
- ๐ 740: Removed unused parameters for grumphp.yml.dist thanks to @BrentRobert
โฌ๏ธ Upgrading custom tasks
Extended external task class
- Make
getConfigurableOptions()
static ๐ง 2. Change service configuration + tag (config -> task)
Extended an external task from TaskInterface
- Make
getConfigurableOptions()
static - Register an
EmptyTaskConfig
during construction - Replace
getConfiguration()
method by thegetConfig()
method - Add immutable
withConfig()
method. ๐ง 5. Change service configuration + tag (config -> task)
Duplicate task with different config
๐ 1. Remove task copy ๐ง 2. Remove service configuration of task copy ๐ง 3. Configure task copy as an alias : https://github.com/phpro/grumphp/blob/master/doc/tasks.md#run-the-same-task-twice-with-different-configuration