File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
microbootstrap/bootstrappers Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ def bootstrap(self) -> ApplicationT:
88
88
** merge_dict_configs (resulting_application_config , self .bootstrap_before ()),
89
89
)
90
90
91
+ self .bootstrap_before_instruments_after_app_created (application )
92
+
91
93
for instrument in self .instrument_box .instruments :
92
94
if instrument .is_ready ():
93
95
application = instrument .bootstrap_after (application )
@@ -98,6 +100,10 @@ def bootstrap_before(self) -> dict[str, typing.Any]:
98
100
"""Add some framework-related parameters to final bootstrap result before application creation."""
99
101
return {}
100
102
103
+ def bootstrap_before_instruments_after_app_created (self , application : ApplicationT ) -> ApplicationT :
104
+ """Add some framework-related parameters to bootstrap result after application creation, but before instruments are applied.""" # noqa: E501
105
+ return application
106
+
101
107
def bootstrap_after (self , application : ApplicationT ) -> ApplicationT :
102
108
"""Add some framework-related parameters to final bootstrap result after application creation."""
103
109
return application
You can’t perform that action at this time.
0 commit comments