Raydium Framework

Config
in package
implements ConfigInterface

Interfaces, Classes, Traits and Enums

ConfigInterface

Table of Contents

$composer  : mixed
$appPath  : mixed
$composerJson  : mixed
__construct()  : mixed
composer()  : mixed
get()  : mixed
getDefault()  : array<string|int, null|mixed|(null|bool|mixed|(mixed|string)[]|string)[]|string>
isProd()  : bool
siteConfig()  : array<string|int, mixed>
loadComposerFile()  : mixed
multiMerge()  : array<string|int, mixed>
Merges two multi-dimensional arrays recursively.

Properties

$composer

public mixed $composer

$composerJson

private static mixed $composerJson

Methods

__construct()

public __construct(string $appPath) : mixed
Parameters
$appPath : string
Return values
mixed

composer()

public composer([string|null $key = null ]) : mixed
Parameters
$key : string|null = null
Return values
mixed

get()

public get([string|null $key = null ][, mixed $default = null ]) : mixed
Parameters
$key : string|null = null
$default : mixed = null
Return values
mixed

getDefault()

public static getDefault() : array<string|int, null|mixed|(null|bool|mixed|(mixed|string)[]|string)[]|string>
Tags
psalm-return

array{error_handler: mixed, config_file: 'config', terminate: array{debugger: false}, directory: array{wp_dir_path: 'wp', web_root_dir: mixed, content_dir: mixed, plugin_dir: mixed, mu_plugin_dir: mixed, sqlite_dir: mixed, sqlite_file: mixed, theme_dir: mixed, asset_dir: mixed, publickey_dir: mixed}, default_theme: mixed, disable_updates: mixed, can_deactivate: mixed, security: array{sucuri_waf: false, encryption_key: null, 'brute-force': true, 'two-factor': true, 'no-pwned-passwords': true, 'admin-ips': array<never, never>}, mailer: array{brevo: array{apikey: mixed}, postmark: array{token: mixed}, sendgrid: array{apikey: mixed}, mailerlite: array{apikey: mixed}, mailgun: array{domain: mixed, secret: mixed, endpoint: mixed, scheme: 'https'}, ses: array{key: mixed, secret: mixed, region: mixed}}, sudo_admin: mixed, sudo_admin_group: null, s3uploads: array{bucket: mixed, key: mixed, secret: mixed, region: mixed, 'bucket-url': mixed, 'object-acl': mixed, expires: mixed, 'http-cache': mixed}, redis: array{disabled: mixed, host: mixed, port: mixed, password: mixed, adminbar: mixed, 'disable-metrics': mixed, 'disable-banners': mixed, prefix: mixed, database: mixed, timeout: mixed, 'read-timeout': mixed}, publickey: array{'app-key': mixed}}

Return values
array<string|int, null|mixed|(null|bool|mixed|(mixed|string)[]|string)[]|string>

isProd()

public static isProd(string $environment) : bool
Parameters
$environment : string
Return values
bool

siteConfig()

public siteConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

loadComposerFile()

protected loadComposerFile([string|null $composerJsonPath = null ]) : mixed
Parameters
$composerJsonPath : string|null = null
Return values
mixed

multiMerge()

Merges two multi-dimensional arrays recursively.

private static multiMerge(array<string|int, mixed> $array1, array<string|int, mixed> $array2) : array<string|int, mixed>

This function will recursively merge the values of $array2 into $array1. If the same key exists in both arrays, and both corresponding values are arrays, the values are recursively merged. Otherwise, values from $array2 will overwrite those in $array1.

Parameters
$array1 : array<string|int, mixed>

The base array that will be merged into.

$array2 : array<string|int, mixed>

The array with values to merge into $array1.

Return values
array<string|int, mixed>

The merged array.

Search results