Browsing Tag

Framework

Software Engineering

ZF2: Factories

Services can be registered in the configuration as invokables and accessed anywhere in the application through the service locator. There’s a limitation though. The service is not able to use dependencies that are needed during the creation of the service. To solve this, Zend Framework 2 uses factories. Continue Reading