PHP 클래스 Autarky\Config\FileStore

Reads files from one or multiple directories, with the possibility of cascading for different environments and overriding of namespaces.
상속: implements Autarky\Config\ConfigInterface
파일 보기 프로젝트 열기: autarky/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$data array The loaded config data.
$environment string The current environment.
$loaderFactory LoaderFactory The loader factory instance.
$pathResolver Autarky\Files\PathResolver The path resolver instance.

공개 메소드들

메소드 설명
__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 )

보호된 메소드들

메소드 설명
getBasename ( $key )
getDataFromFile ( $path )
getPaths ( $basename )
loadData ( $key )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Autarky\Files\PathResolver $pathResolver, LoaderFactory $loaderFactory, string | null $environment = null )
$pathResolver Autarky\Files\PathResolver
$loaderFactory LoaderFactory
$environment string | null

get() 공개 메소드

public get ( $key, $default = null )

getBasename() 보호된 메소드

protected getBasename ( $key )

getDataFromFile() 보호된 메소드

protected getDataFromFile ( $path )

getLoaderFactory() 공개 메소드

Get the loader factory instance.
public getLoaderFactory ( ) : LoaderFactory
리턴 LoaderFactory

getPaths() 보호된 메소드

protected getPaths ( $basename )

has() 공개 메소드

public has ( $key )

loadData() 보호된 메소드

protected loadData ( $key )

mount() 공개 메소드

public mount ( $location, $path )

set() 공개 메소드

public set ( $key, $value )

setEnvironment() 공개 메소드

public setEnvironment ( $environment )

프로퍼티 상세

$data 보호되어 있는 프로퍼티

The loaded config data.
protected array $data
리턴 array

$environment 보호되어 있는 프로퍼티

The current 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