Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Phase annotation #305

Open
pauxus opened this issue Aug 13, 2023 · 1 comment
Open

Custom Phase annotation #305

pauxus opened this issue Aug 13, 2023 · 1 comment
Milestone

Comments

@pauxus
Copy link
Member

pauxus commented Aug 13, 2023

Provide an annotation that allows a custom phase to be defined (for lifecycle methods and closures).

In some way, this actions must be registered with the PhaseDriver:

  • on creation the class is parsed
  • after the end of the create phase, register all phases, but this would not contain phases of objects created in the auto create phase
  • Visiting phase action could include checks for custom phases
  • Loaded classes could register their custom phase actions
  • autocreate cold recheck for new phases
@pauxus
Copy link
Member Author

pauxus commented Aug 14, 2023

static class action via AST seems to be the easiest solution

@pauxus pauxus changed the title Custom Phase annoation Custom Phase annotation Oct 26, 2024
@pauxus pauxus added this to the 2.x milestone Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant