PHP 클래스 Bolt\Configuration\LowlevelChecks

사용 중단: Deprecated since 3.1, to be removed in 4.0.
상속: implements Bolt\Configuration\Validation\ValidatorInterface
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$checks
$config
$configChecks
$disableApacheChecks
$isApache
$magicQuotes
$mysqlLoaded
$postgresLoaded
$safeMode
$sqliteLoaded

공개 메소드들

메소드 설명
__construct ( ResourceManager $config = null )
add ( $checkName, $className, $prepend = false )
addCheck ( string $check, boolean $top = false ) Add a check
assertWritableDir ( $path )
check ( $checkName )
checkApache ( ) This check looks for the presence of the .htaccess file inside the web directory.
checkCache ( ) Check if the cache dir is present and writable.
checkMagicQuotes ( )
checkSafeMode ( )
checks ( )
disableApacheChecks ( )
doChecks ( ) Perform the checks.
doDatabaseCheck ( ) : Response | null Perform the check for the database folder. We do this seperately, because it can only be done _after_ the other checks, since we need to have the $config, to see if we even _need_ to do this check.
has ( $checkName )
remove ( $checkName )
removeCheck ( string $check ) Remove a check from the list causing it to be skipped.

보호된 메소드들

메소드 설명
doDatabaseSqliteCheck ( $config )
lowlevelConfigFix ( string $name ) Check if a config file is present and writable. If not, try to create it from the filename.dist.

비공개 메소드들

메소드 설명
getExceptionController ( ) : Exception

메소드 상세

__construct() 공개 메소드

public __construct ( ResourceManager $config = null )
$config ResourceManager

add() 공개 메소드

public add ( $checkName, $className, $prepend = false )

addCheck() 공개 메소드

Add a check
public addCheck ( string $check, boolean $top = false )
$check string
$top boolean

assertWritableDir() 공개 메소드

public assertWritableDir ( $path )

check() 공개 메소드

public check ( $checkName )

checkApache() 공개 메소드

It is here only as a convenience check for users that install the basic version of Bolt. If you see this error and want to disable it, call $config->getVerifier()->disableApacheChecks(); inside your bootstrap.php file, just before the call to $config->verify().
public checkApache ( )

checkCache() 공개 메소드

Check if the cache dir is present and writable.
public checkCache ( )

checkMagicQuotes() 공개 메소드

public checkMagicQuotes ( )

checkSafeMode() 공개 메소드

public checkSafeMode ( )

checks() 공개 메소드

public checks ( )

disableApacheChecks() 공개 메소드

public disableApacheChecks ( )

doChecks() 공개 메소드

Perform the checks.
public doChecks ( )

doDatabaseCheck() 공개 메소드

Perform the check for the database folder. We do this seperately, because it can only be done _after_ the other checks, since we need to have the $config, to see if we even _need_ to do this check.
public doDatabaseCheck ( ) : Response | null
리턴 Symfony\Component\HttpFoundation\Response | null

doDatabaseSqliteCheck() 보호된 메소드

protected doDatabaseSqliteCheck ( $config )

has() 공개 메소드

public has ( $checkName )

lowlevelConfigFix() 보호된 메소드

Check if a config file is present and writable. If not, try to create it from the filename.dist.
protected lowlevelConfigFix ( string $name )
$name string Filename stem; .yml extension will be added automatically.

remove() 공개 메소드

public remove ( $checkName )

removeCheck() 공개 메소드

Remove a check from the list causing it to be skipped.
public removeCheck ( string $check )
$check string

프로퍼티 상세

$checks 공개적으로 프로퍼티

public $checks

$config 공개적으로 프로퍼티

public $config

$configChecks 공개적으로 프로퍼티

public $configChecks

$disableApacheChecks 공개적으로 프로퍼티

public $disableApacheChecks

$isApache 공개적으로 프로퍼티

public $isApache

$magicQuotes 공개적으로 프로퍼티

public $magicQuotes

$mysqlLoaded 공개적으로 프로퍼티

public $mysqlLoaded

$postgresLoaded 공개적으로 프로퍼티

public $postgresLoaded

$safeMode 공개적으로 프로퍼티

public $safeMode

$sqliteLoaded 공개적으로 프로퍼티

public $sqliteLoaded