Closed JABirchall closed 7 years ago
Possibley could use get_parent_class($this)->teamSpeak3Bot->Foobar()
IM AN IDIOT. all plugins extend the base plugin class which has Teamspeak3Bot referenced. making another reference is completely obsolete.
Can just do $this->teamSpeak3Bot
without needing to make the reference (again)
This is a derp moment... Working hard.
Technically plugins should not need to reference
$teamSpeak3Bot
in__contruct()
. They should be able to invokeparent->teamSpeak3Bot
as the plugin container already has a reference.Making so many references to teamSpeak3Bot does have performance impacts.
@Najsr could you look into this for me.