GeneralParser
class GeneralParser extends BaseParser (View source)
Properties
protected FileLocator | $fileLocator | from BaseParser | |
protected PathResolver | $pathResolver | from BaseParser | |
protected string | $initialFilename | from BaseParser | |
protected string[] | $parsedFilenames | from BaseParser |
Methods
No description
Read and parse a YAML configuration file.
Read and parse the config.yaml and config_local.yaml configuration files.
Assume sensible defaults for a number of options.
Parse and fine-tune the database configuration.
Parses params to valid connection parameters.
Fine-tune Sqlite configuration parameters.
Details
__construct(string $projectDir, string $initialFilename = 'config.yaml')
protected Collection
parseConfigYaml(string $filename, bool $ignoreMissing = false)
Read and parse a YAML configuration file.
If filename doesn't exist and/or isn't readable, we attempt to locate it in our config folder. This way you can pass in either an absolute filename or simply 'menu.yaml'.
array
getParsedFilenames()
getInitialFilename()
getFilenameLocalOverrides()
Collection
parse()
Read and parse the config.yaml and config_local.yaml configuration files.
protected array
getDefaultConfig()
Assume sensible defaults for a number of options.
protected Collection
parseDatabase(array $options)
Parse and fine-tune the database configuration.
protected Collection
parseConnectionParams($params, Collection|null $defaults = null)
Parses params to valid connection parameters.
- Defaults are merged into the params
- Bolt keys are converted to Doctrine keys
- Invalid keys are filtered out
protected Collection
parseSqliteOptions(Collection $config)
Fine-tune Sqlite configuration parameters.