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

feat(core): Add app.setup and app.teardown hook support #2585

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

daffl
Copy link
Member

@daffl daffl commented Mar 29, 2022

This pull request adds built-in support for application setup and teardown hooks. They are special hooks that don't run on the service level but instead directly on app.setup and app.teardown

app.hooks({
  setup: [ mongodbConnection ],
  teardown: [ closeMongoConnection ]
});

@marshallswain
Copy link
Member

:shipit: 🚀

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

Successfully merging this pull request may close these issues.

2 participants