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

또한 보기: FileLoaderAbstract
상속: extends FileLoaderAbstract
파일 보기 프로젝트 열기: theorchard/monolog-cascade 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$validExtensions array Valid file extensions for this loader

공개 메소드들

메소드 설명
load ( string $resource, string | null $type = null ) : array Load a PHP file
supports ( string $resource, string $type = null ) : boolean Return whether or not the resource passed in is supported by this loader !\ This does not verify that the php file returns a valid array. An exception will be thrown when it is loaded if that is not the case.

메소드 상세

load() 공개 메소드

Load a PHP file
public load ( string $resource, string | null $type = null ) : array
$resource string File path to a PHP file that returns an array
$type string | null This is not used
리턴 array Array containing data from the PHP file

supports() 공개 메소드

Return whether or not the resource passed in is supported by this loader !\ This does not verify that the php file returns a valid array. An exception will be thrown when it is loaded if that is not the case.
public supports ( string $resource, string $type = null ) : boolean
$resource string Filepath
$type string Not used
리턴 boolean Whether or not the passed in resource is supported by this loader

프로퍼티 상세

$validExtensions 공개적으로 정적으로 프로퍼티

Valid file extensions for this loader
public static array $validExtensions
리턴 array