PHP Class Cascade\Config\Loader\FileLoader\Yaml

See also: FileLoaderAbstract
Author: Raphael Antonmattei ([email protected])
Inheritance: extends FileLoaderAbstract
Show file Open project: theorchard/monolog-cascade

Public Properties

Property Type Description
$validExtensions array Valid file extensions for this loader

Public Methods

Method Description
load ( string $resource, string | null $type = null ) : array Load a Yaml string/file
supports ( string $resource, string $type = null ) : boolean Return whether or not the resource passed in is supported by this loader !\ This does not validate Yaml content. The parser will raise an exception in that case

Method Details

load() public method

Load a Yaml string/file
public load ( string $resource, string | null $type = null ) : array
$resource string Yaml string or file path to a Yaml file
$type string | null Not used
return array Array containing data from the parse Yaml string or file

supports() public method

Return whether or not the resource passed in is supported by this loader !\ This does not validate Yaml content. The parser will raise an exception in that case
public supports ( string $resource, string $type = null ) : boolean
$resource string Plain string or filepath
$type string Not used
return boolean Whether or not the passed in resrouce is supported by this loader

Property Details

$validExtensions public static property

Valid file extensions for this loader
public static array $validExtensions
return array