PHP Class Nelmio\Alice\Parser\ParserRegistry

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

Public Methods

Method Description
__construct ( array $parsers )
parse ( string $file ) : array Looks for the first suitable parser to parse the file.

Method Details

__construct() public method

public __construct ( array $parsers )
$parsers array

parse() public method

public parse ( string $file ) : array
$file string
return array