PHP 클래스 Cascade\Config\Loader\FileLoader\Yaml

또한 보기: FileLoaderAbstract
저자: Raphael Antonmattei ([email protected])
상속: extends FileLoaderAbstract
파일 보기 프로젝트 열기: theorchard/monolog-cascade

공개 프로퍼티들

프로퍼티 타입 설명
$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