[Koha-bugs] [Bug 16306] New: C4::Context->setCommandlineEnvironment() convenience function
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Apr 20 11:25:06 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16306
Bug ID: 16306
Summary: C4::Context->setCommandlineEnvironment() convenience
function
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: gmcharlt at gmail.com
Reporter: olli-antti.kivilahti at jns.fi
QA Contact: testopia at bugs.koha-community.org
There is no unified way to set the environment for commandline scripts, even if
the C4::Context->interface('commandline') explicitly allows setting the cli
interface.
Also a default user environment must be set.
This function wraps the complexity of environment setting in the command line.
Usage:
use C4::Context;
BEGIN {
C4::Context->setCommandlineEnvironment();
}
... #Load other dependencies that might depend on the environment
or just:
...
use C4::Context;
C4::Context->setCommandlineEnvironment();
...
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list