packagist phpro/grumphp v0.18.0
Version 0.18.0

latest releases: v2.x-dev, v2.5.0, dev-dependabot/composer/composer/composer-2.7.0...
4 years ago

Total issues resolved: 9

Upgrading custom tasks

Extended external task class

  1. Make getConfigurableOptions() static
  2. Change service configuration + tag (config -> task)

Extended an external task from TaskInterface

  1. Make getConfigurableOptions() static
  2. Register an EmptyTaskConfig during construction
  3. Replace getConfiguration() method by the getConfig() method
  4. 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

Don't miss a new grumphp release

NewReleases is sending notifications on new releases.