PHP Класс Bolt\Configuration\LowlevelChecks

Устаревший: Deprecated since 3.1, to be removed in 4.0.
Наследование: implements Bolt\Configuration\Validation\ValidatorInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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