Tomas Votruba Blog: Removing Static – There and Back Again

  • You are here: Free PHP » Uncategorized » Tomas Votruba Blog: Removing Static – There and Back Again

The more companies I meet, the more I see static and new everywhere. Not like new Product, but rather new ProductRepository(new Database()). Not just Laravel, but across all PHP frameworks. I wish frameworks could prevent antipatterns, but they don't, do they?

Instead of "refactor all the things" step by step, class by class, I'd like share my thoughts when exploring full automated path. I look for feedback to improve this process.

Powered by Gewgley