Bolt\Configuration\LowlevelChecks::__construct PHP Method

__construct() public method

public __construct ( ResourceManager $config = null )
$config ResourceManager
    public function __construct($config = null)
    {
        $this->config = $config;
        $this->magicQuotes = get_magic_quotes_gpc();
        $this->safeMode = ini_get('safe_mode');
        $this->isApache = isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false;
        $this->postgresLoaded = extension_loaded('pdo_pgsql');
        $this->sqliteLoaded = extension_loaded('pdo_sqlite');
        $this->mysqlLoaded = extension_loaded('pdo_mysql');
    }

Usage Example

Esempio n. 1
0
 /**
  * The constructor requires a resource manager object to perform checks against.
  * This should ideally be typehinted to Bolt\Configuration\ResourceManager.
  *
  * @param ResourceManager $config
  */
 public function __construct($config = null)
 {
     parent::__construct($config);
     $this->addCheck('publicAssets');
     $this->addCheck('database', true);
     $this->addCheck('config', true);
 }
All Usage Examples Of Bolt\Configuration\LowlevelChecks::__construct