PHP 클래스 Autarky\Config\FileStore
Reads files from one or multiple directories, with the possibility of
cascading for different environments and overriding of namespaces.
파일 보기
프로젝트 열기: autarky/framework
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( Autarky\Files\PathResolver $pathResolver, LoaderFactory $loaderFactory, string | null $environment = null ) |
Constructor. |
|
get ( $key, $default = null ) |
|
|
getLoaderFactory ( ) : LoaderFactory |
Get the loader factory instance. |
|
has ( $key ) |
|
|
mount ( $location, $path ) |
|
|
set ( $key, $value ) |
|
|
setEnvironment ( $environment ) |
|
|
보호된 메소드들
메소드 상세
public __construct ( Autarky\Files\PathResolver $pathResolver, LoaderFactory $loaderFactory, string | null $environment = null ) |
$pathResolver |
Autarky\Files\PathResolver |
|
$loaderFactory |
LoaderFactory |
|
$environment |
string | null |
|
public get ( $key, $default = null ) |
getDataFromFile()
보호된 메소드
getLoaderFactory()
공개 메소드
Get the loader factory instance.
public mount ( $location, $path ) |
public set ( $key, $value ) |
프로퍼티 상세
protected array $data |
리턴 |
array |
|
$environment 보호되어 있는 프로퍼티
protected string $environment |
리턴 |
string |
|
$loaderFactory 보호되어 있는 프로퍼티
The loader factory instance.
protected LoaderFactory,Autarky\Config $loaderFactory |
리턴 |
LoaderFactory |
|
$pathResolver 보호되어 있는 프로퍼티
The path resolver instance.
protected PathResolver,Autarky\Files $pathResolver |
리턴 |
Autarky\Files\PathResolver |
|