https://bugs.koha-community.org/show_bug.cgi?id=15562
---
C4/Context.pm | 29 -
t/db_dependent/sysprefs.t | 14 +-
2 files changed, 29 insertions(+), 14 deletions(-)
diff --git a/C4/Context.pm b/C4/Context.pm
index 341438a..1dcdce4 100644
---
Sort of an apocalypse
* C4::Context->new() must be called with at least config file param.
If you want current context, call C4::Context->current().
C4::Context->some_method() will still work as is.
* Koha::Database->new_schema() now takes optional context param.
* C4::Context->set_context()
There should be no cache singleton, full stop. If Koha is to move away
from .pl scripts that is.
As an interim measure Koha::Cache->get_instance() is replaced with
C4::Context->cache, in the vein of C4::Context->memcached. In that
respect it will continue to work in the singleton-ish way if