VuFind API Documentation

SecretTrait

Trait to import secret from file rather than a hardcoded config

Tags
category

VuFind

author

Robby ROUDON roudonro@msu.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Page

Table of Contents

getSecretFromConfig()  : string|null
Load a secret value from the specified configuration and key.

Methods

getSecretFromConfig()

Load a secret value from the specified configuration and key.

protected getSecretFromConfig(Config|array<string|int, mixed>|null $config, string $key) : string|null

Will look for a _file-suffixed version of the key first, and load the data from a separate file if configured to do so.

Parameters
$config : Config|array<string|int, mixed>|null

The config to read from

$key : string

The key to retrieve

Return values
string|null

Search results