lundi 11 février 2019

Better way of importing libraries into a class

I have developed an external module within an existing application. I want to make this module more or less reusable. This module requires 6 classes/constants from my existing application. I can try to import those via the parent class in my module I.e. ‘$module = new myModile($class1, $class2, $class3, $constant1...)’

But, definition will be very length and my module has quite few files and I will have to have some way of distributing specified classes between other files.

So, the question is, is there a better way to achieve what I am after?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire