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

Support lifecycle hooks #1

Open
sauramirez opened this issue Feb 18, 2022 · 0 comments
Open

Support lifecycle hooks #1

sauramirez opened this issue Feb 18, 2022 · 0 comments

Comments

@sauramirez
Copy link
Owner

preHook and postHook should be supported so services extending JoiService can pass options around. Very useful when you have a database service and need to run a process using a transaction.

execute
-> preHook()
-> process()
-> postHook()

sauramirez added a commit that referenced this issue Feb 18, 2022
sauramirez added a commit that referenced this issue Mar 7, 2022
* Support lifecycle hooks #1

* Renamed lifecycle hooks
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