abstract class BaseParser (View source)

Properties

protected FileLocator $fileLocator
protected PathResolver $pathResolver
protected string $initialFilename
protected string[] $parsedFilenames

Methods

__construct(string $projectDir, string $initialFilename)

No description

Collection
parseConfigYaml(string $filename, bool $ignoreMissing = false)

Read and parse a YAML configuration file.

array
getParsedFilenames()

No description

getInitialFilename()

No description

getFilenameLocalOverrides()

No description

Collection
parse()

No description

Details

__construct(string $projectDir, string $initialFilename)

Parameters

string $projectDir
string $initialFilename

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'.

Parameters

string $filename
bool $ignoreMissing

Return Value

Collection

array getParsedFilenames()

Return Value

array

getInitialFilename()

getFilenameLocalOverrides()

abstract Collection parse()

Return Value

Collection