Question about dependencies

Discussion in 'Plugin Development' started by Desle, May 10, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Desle

    Hi,

    say you have multiple plugins using the same exact class, would it be better to put that class in it's own plugin, or put the class in every plugin that needs it?

    I do not know if it even matters, but I want to be sure I'm doing this the right way
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Desle Depends, do you plan on changing that class? How big is the class?
     
  3. Offline

    Desle

    ~150 lines, never changes, only contains functions, but I plan on using it in many plugins. (~15)
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Desle Then I would just put it into the plugin using it.
     
    Desle likes this.
Thread Status:
Not open for further replies.

Share This Page