hook: Convert hook.Manager to an interface
Instead of always assuming a concrete implementation for hook.Manager, this commit converts it to an interface instead. That allows us to easily swap out the implementation e.g. for testing purposes.
Instead of always assuming a concrete implementation for hook.Manager, this commit converts it to an interface instead. That allows us to easily swap out the implementation e.g. for testing purposes.