Bug 7176

Summary: Split C4::Context into submodules
Product: Koha Reporter: Ian Walls <koha.sekjal>
Component: Architecture, internals, and plumbingAssignee: Paul Poulain <paul.poulain>
Status: CLOSED INVALID QA Contact:
Severity: minor    
Priority: P5 - low CC: tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 7119    

Description Ian Walls 2011-11-06 04:30:20 UTC
C4::Context currently does way too many things:

Reading koha-conf.xml
Retrieving system preferences
Connecting to Zebra
Connecting to the database
Getting marc from a Koha field
Handling stopwords
Setting user environment
Showing versions of installed software

Breaking this down into submodules (C4::Context::Preferences, C4::Context::DBH, C4::Context::Config, etc) would allow us to only call the parts we need in any given place, reducing the overhead of loading a page.
Comment 1 Paul Poulain 2016-06-04 08:54:57 UTC
so many changes are underway related to modules, OOo, authentication,... that I think this unique bug can/must be closed