yea… I suspected that was the answer that I’d get.
LazyControllerAbstractFactory sounds great but unavailable to me right now because the app is still a Zend Framework 2 .4 app under php 5.6. Our plan is to:
- Get rid of ServiceLocater anti-pattern,
- Refactor code that would be problematic under php 7.4
- Switch to php 7.4 (still a ZF2 app)
- Start using Composer for autoloading
- Convert it to Laminas-MVC.
(This was our first php app - written by coders new to php 4 years ago.)
We are still on step #1; unfortunately, there are MANY instances where we use Service Manager (ugh!)
Thank you, @froschdesign , you have been very helpful to many people in this forum (including me!). It is obvious that you know this framework very well.
Question: Do you think that we are proceeding in the correct sequence (steps 1-5 above)?
I wonder if it might be better to get rid of ServiceLocator after it is running under php 7.4 and converted to Laminas-MVC (obviously, we’d have to filter out the user_deprecated messages).