Open NedcloarBR opened 2 months ago
LavalinkManager has NodeManager and ManagerUtils that need LavalinkManager to be instantiated but the LavalinkManager property is public so we have the circular reference/dependency problem.
LavalinkManager
NodeManager
ManagerUtils
LavalinkManager.NodeManager.LavalinkManager.ManagerUtils.LavalinkManager
And it goes on endlessly. In this Issue I suggest that the LavalinkManager be private within classes that are its properties
making something private doesn'T solve circular references
I will think of how to reduce the circular references
You can do
Dependency Injection After Instantiation
Or Lazy Initialization
Lazy Initialization
LavalinkManager
hasNodeManager
andManagerUtils
that needLavalinkManager
to be instantiated but theLavalinkManager
property is public so we have the circular reference/dependency problem.And it goes on endlessly. In this Issue I suggest that the
LavalinkManager
be private within classes that are its properties