dimanche 20 août 2017

Does official Slim 3 skeleton violate inversion of control pattern?

I'm looking for a Slim skeleton and I found this skeleton: http://ift.tt/1Qdqgms. It seems to be the official skeleton because it is in slimphp repository. They directly create a new class instance (automatically loaded via autoload) in this file for example: http://ift.tt/2x38yMg. Does this not make the application difficult to test and violate the inversion of control pattern?

Aucun commentaire:

Enregistrer un commentaire