Added loaded container to Post process arguments

This commit is contained in:
Petr Kalis 2025-04-08 10:44:21 +02:00
parent 44fc6f75ab
commit 2fe9381471
2 changed files with 9 additions and 1 deletions

View file

@ -292,7 +292,14 @@ class PostLoadHookPlugin:
they are loaded without need to override existing core plugins.
loaders: ClassVar[set[str]]
"""
def process(self, context, name=None, namespace=None, options=None):
def process(
self,
container,
context,
name=None,
namespace=None,
options=None
):
pass
def update(self, container, context):

View file

@ -427,6 +427,7 @@ def _load_context(Loader, contexts, name, namespace, options, hooks):
load_return = Loader().load(contexts, name, namespace, options)
for hook_plugin_cls in hooks.get("post", []):
hook_plugin_cls().process(
load_return,
contexts,
name,
namespace,