Feature Request #4025

Remove the singleton pattern

Added by Sam de Freyssinet 12 months ago. Updated 12 months ago.

Status:Closed Start date:05/26/2011
Priority:Normal Due date:
Assignee:Sam de Freyssinet % 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

related to Cache - Feature Request #3378: Move Cache Module to Kohana-Core Kohana v3.x - v3.3.0 Closed 11/02/2010

Associated revisions

Revision 1b81f9ff
Added by Sam de Freyssinet 12 months ago

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

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.

Also available in: Atom PDF