PHP Class Nelmio\Alice\Parser\Chainable\YamlParser

Inheritance: implements Nelmio\Alice\Parser\ChainableParserInterface, use trait Nelmio\Alice\IsAServiceTrait
Show file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Parser $yamlParser )
canParse ( string $file ) : boolean
parse ( string $file ) : array {@inheritDoc}

Method Details

__construct() public method

public __construct ( Parser $yamlParser )
$yamlParser Symfony\Component\Yaml\Parser

canParse() public method

public canParse ( string $file ) : boolean
$file string
return boolean

parse() public method

{@inheritDoc}
public parse ( string $file ) : array
$file string Local YAML file
return array