class TaxonomyParser 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

__construct(string $projectDir, string $initialFilename = 'taxonomy.yaml')

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()

Read and parse the taxonomy.yml configuration file.

Details

__construct(string $projectDir, string $initialFilename = 'taxonomy.yaml')

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()

Collection parse()

Read and parse the taxonomy.yml configuration file.

Return Value

Collection