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

Bootstrap process integration/support exception handler setup? #30

Open
Firehed opened this issue Dec 6, 2021 · 0 comments
Open

Bootstrap process integration/support exception handler setup? #30

Firehed opened this issue Dec 6, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Firehed
Copy link
Owner

Firehed commented Dec 6, 2021

In most applications, it's extremely common to do some amount of bootstrapping before the application runs. This includes tasks such as:

  • Configuring loggers
  • Setting error and exception handlers
  • Supplementing env variables (e.g. dotenv)
  • Adjusting INI values

While this would likely result in some scope creep, it still may be worth considering. Currently there tends to be a need for awkward back-and-forth between a bootstrap script and building+using the container, which in addition being sometimes hard to follow can also lead to minor performance regressions & potentially weird behavior (something expecting the non-factory, singleton-like behavior can get multiple instances since the container itself may not be a shared instance).

The issues this is trying to address may be addressable in other ways, but this seems to be a relatively straightforward approach.

@Firehed Firehed added the enhancement New feature or request label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant