Comments (3)
Resetting services is not really feasible, without making individual services resettable via proxies 🤔
from laminas-mvc.
At some point me and others in then zend framework community tried to use same application to handle multiple consecutive requests. We doscovered that application was leaking state between requests pretty badly in unpredictable manner.
I do not think application can be reliably reset for testing purposes for much the same reasons it couldn't be used for multiple requests.
from laminas-mvc.
Biggest issue being that the controller helpers and view helpers are stateful by design too.
Services being resettable is feasible with some work, but that would require expanding the laminas/laminas-servicemanager
capabilities substantially.
from laminas-mvc.
Related Issues (20)
- Unit tests for delegator factories
- Typo in 3.3 QuickStart Tutorial HOT 4
- 3.x Quick-Start module.config snippet needs improvement. HOT 4
- AbstractRestfulController: return response instead of array HOT 2
- Plea for Ukraine HOT 7
- Removal of `container-interop/container-interop`
- AbstractRestfulController::patch returns array, not mixed HOT 3
- Implement and abstract controller that implement RequestHandlerInterface HOT 3
- Provide migration documentation for deprecated built-in middleware HOT 2
- Dependency Dashboard
- The documentation for AbstractRestfulController is incomplete
- InjectTemplateListener using different templates for single action
- [RFC]: Removal of `Application#bootstrap` and `Application#init` HOT 4
- VS-Code error AbstractController in line 150: Cannot use ::class with dynamic class name HOT 1
- [laminas-mvc-view] Drop or update the Url View Helper Factory
- [laminas-mvc-view] Remove the Doctype view helper factory
- Register module in the application
- Add autoloading for module to composer.json
- `ControllerManager` service alias change breaks `laminas-mvc-console` HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laminas-mvc.