]> git.koha-community.org Git - koha.git/commit
Bug 23580: Add C4::Context->yaml_preference
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 10 Sep 2019 14:42:31 +0000 (11:42 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 12 Sep 2019 15:44:28 +0000 (16:44 +0100)
commit2694e53b204128b5ba2eddf9af24a59bc37a982e
treefc60d89b95852c57930e440253a0a0896e01b35c
parent8ecee99a020ed1bbac31b5f0d3ef4b3cba269041
Bug 23580: Add C4::Context->yaml_preference

This patch adds a new methods to be used on YAML-based sysprefs. The
idea is that we would use it instead of handling the YAML decoding
in-place everywhere we use YAML syprefs.

Ideally, we could even move pipe separated values sysprefs into YAML,
etc.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/Context.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Context.pm