PHP Class Bolt\Configuration\LowlevelChecks

Deprecation: Deprecated since 3.1, to be removed in 4.0.
Inheritance: implements Bolt\Configuration\Validation\ValidatorInterface
Show file Open project: bolt/bolt Class Usage Examples

Public Properties

Property Type Description
$checks
$config
$configChecks
$disableApacheChecks
$isApache
$magicQuotes
$mysqlLoaded
$postgresLoaded
$safeMode
$sqliteLoaded

Public Methods

Method Description
__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.

Protected Methods

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

Private Methods

Method Description
getExceptionController ( ) : Exception

Method Details

__construct() public method

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

add() public method

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

addCheck() public method

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

assertWritableDir() public method

public assertWritableDir ( $path )

check() public method

public check ( $checkName )

checkApache() public method

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() public method

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

checkMagicQuotes() public method

public checkMagicQuotes ( )

checkSafeMode() public method

public checkSafeMode ( )

checks() public method

public checks ( )

disableApacheChecks() public method

public disableApacheChecks ( )

doChecks() public method

Perform the checks.
public doChecks ( )

doDatabaseCheck() public method

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
return Symfony\Component\HttpFoundation\Response | null

doDatabaseSqliteCheck() protected method

protected doDatabaseSqliteCheck ( $config )

has() public method

public has ( $checkName )

lowlevelConfigFix() protected method

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 method

public remove ( $checkName )

removeCheck() public method

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

Property Details

$checks public property

public $checks

$config public property

public $config

$configChecks public property

public $configChecks

$disableApacheChecks public property

public $disableApacheChecks

$isApache public property

public $isApache

$magicQuotes public property

public $magicQuotes

$mysqlLoaded public property

public $mysqlLoaded

$postgresLoaded public property

public $postgresLoaded

$safeMode public property

public $safeMode

$sqliteLoaded public property

public $sqliteLoaded