Feature Request #4025
Remove the singleton pattern
| Status: | Closed | Start date: | 05/26/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | - | |||
| Target version: | Kohana v3.x - v3.3.0 | |||
| Resolution: | Points: |
Description
Cache should not use the Singleton pattern anymore. Instead Dependency Injection should be use to pass the Cache resource to classes that require it.
Related issues
Associated revisions
Fixes #4025, singleton pattern removed from Cache class.
New factory method implemented. All Cache instances should be injected as dependencies as required
Includes refactorered unit tests
New configuration accessor method with tests
Included transparent extension classes for garbage collection and tagging
History
Updated by Jeremy Bush 12 months ago
- Target version changed from v3.2.0 to v3.3.0
Updated by Sam de Freyssinet 12 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 1b81f9fff71853547581e48d3584fa40759f1f86.
Updated by Sam de Freyssinet 12 months ago
Ah man, I just pushed this into 3.2! I'll roll this back into 3.3.