DatabaseParser class
Framework\Config\Parsers\DatabaseParser
Class DatabaseParser.
Extends Framework\Config\Parsers\Parser
Defined in libraries/config/src/Parsers/DatabaseParser.php
Methods #
- parse()
- Get config from a database.
- checkConfig()
- -
parse()
public static function parse(mixed $config): array
Get config from a database.
Parameters
- mixed $config - array with configs for database connection: host, port, username, password, schema and table
Returns
array
- The database parsed data
checkConfig()
protected static function checkConfig(mixed $config): void
Parameters
- mixed $config
Returns
void
Inherited methods #
-
parseOrThrow()fromFramework\Config\Parsers\Parser -
addChild()fromFramework\Config\Parsers\Parser -
getValue()fromFramework\Config\Parsers\Parser -
ksortRecursive()fromFramework\Config\Parsers\Parser