PHP 클래스 Devise\Support\Config\EnvironmentFileManager

파일 보기 프로젝트 열기: devisephp/cms

공개 메소드들

메소드 설명
__construct ( Framework $Framework, $envFile = null ) Create a new settings manager
createIfNotExists ( ) : void Checks for existence of .env file, if not it creates a new one.
get ( string $file = null, boolean $settingsOnly = true ) : array Extract the settings from the env file it should be in format DB_HOST=something and take up no more than one line
merge ( array $settings ) : [type] Merge in environment settings
save ( array $settings ) : array This will save the settings to the env file

메소드 상세

__construct() 공개 메소드

Create a new settings manager
public __construct ( Framework $Framework, $envFile = null )
$Framework Devise\Support\Framework

createIfNotExists() 공개 메소드

Checks for existence of .env file, if not it creates a new one.
public createIfNotExists ( ) : void
리턴 void

get() 공개 메소드

Extract the settings from the env file it should be in format DB_HOST=something and take up no more than one line
public get ( string $file = null, boolean $settingsOnly = true ) : array
$file string
$settingsOnly boolean
리턴 array

merge() 공개 메소드

Merge in environment settings
public merge ( array $settings ) : [type]
$settings array
리턴 [type]

save() 공개 메소드

This will save the settings to the env file
public save ( array $settings ) : array
$settings array
리턴 array