Skip to content

Re-assess ordering of global afterBuild hooks #16

@davidtkramer

Description

@davidtkramer

Right now global afterBuild hooks are ran after trait afterBuild hooks. When combined with extended factories, this may lead to unintuitive execution order of hooks.

Running global hooks after results in parent hooks being mixed in with child hooks:

  1. child trait hooks
  2. parent global hook
  3. child global hook

Running global hooks before results in a more intuitive ordering that follows the inheritance hierarchy:

  1. parent global hook
  2. child global hook
  3. child trait hooks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions