PHP Класс Cascade\Config\Loader\FileLoader\Yaml

См. также: FileLoaderAbstract
Автор: Raphael Antonmattei ([email protected])
Наследование: extends FileLoaderAbstract
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$validExtensions array Valid file extensions for this loader

Открытые методы

Метод Описание
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

Описание методов

load() публичный метод

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
Результат array Array containing data from the parse Yaml string or file

supports() публичный метод

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
Результат boolean Whether or not the passed in resrouce is supported by this loader

Описание свойств

$validExtensions публичное статическое свойство

Valid file extensions for this loader
public static array $validExtensions
Результат array