Is this a good service locator, and is this service locator pattern(?) OK?
I’m working in Zend framework 1 and was using Zend_Registry to store objects so that I could replace them in my controllers while unit testing:
How bad is it that my index.php in a Zend Framework MVC application mixes definitions and side effects?
I’m introducing some more coding quality standards and checks via a new project – in particular, the PHP-FIG recommendations.
How bad is it that my index.php in a Zend Framework MVC application mixes definitions and side effects?
I’m introducing some more coding quality standards and checks via a new project – in particular, the PHP-FIG recommendations.