Skip to content

Bootstrap

  • Full name: \OAuth2\Storage\Bootstrap

Constants

Constant Visibility Type Value
DYNAMODB_PHP_VERSION public 'none'

Properties

instance

protected static $instance
  • This property is static.

mysql

private $mysql

sqlite

private $sqlite

postgres

private $postgres

mongo

private $mongo

mongoDb

private $mongoDb

redis

private $redis

cassandra

private $cassandra

configDir

private $configDir

dynamodb

private $dynamodb

couchbase

private $couchbase

Methods

__construct

public __construct(): mixed

getInstance

public static getInstance(): mixed
  • This method is static.

getSqlitePdo

public getSqlitePdo(): mixed

getPostgresPdo

public getPostgresPdo(): mixed

getPostgresDriver

public getPostgresDriver(): mixed

getMemoryStorage

public getMemoryStorage(): mixed

getRedisStorage

public getRedisStorage(): mixed

testRedisConnection

private testRedisConnection(\Predis\Client $redis): mixed

Parameters:

Parameter Type Description
$redis \Predis\Client

getMysqlPdo

public getMysqlPdo(): mixed

getMongo

public getMongo(): mixed

getMongoDb

public getMongoDb(): mixed

testMongoConnection

private testMongoConnection(\MongoClient $mongo): mixed

Parameters:

Parameter Type Description
$mongo \MongoClient

testMongoDBConnection

private testMongoDBConnection(\MongoDB\Client $mongo): mixed

Parameters:

Parameter Type Description
$mongo \MongoDB\Client

getCouchbase

public getCouchbase(): mixed

testCouchbaseConnection

private testCouchbaseConnection(\Couchbase $couchbase): mixed

Parameters:

Parameter Type Description
$couchbase \Couchbase

getCassandraStorage

public getCassandraStorage(): mixed

testCassandraConnection

private testCassandraConnection(\phpcassa\Connection\ConnectionPool $cassandra): mixed

Parameters:

Parameter Type Description
$cassandra \phpcassa\Connection\ConnectionPool

removeCassandraDb

private removeCassandraDb(): mixed

createCassandraDb

private createCassandraDb(\OAuth2\Storage\Cassandra $storage): mixed

Parameters:

Parameter Type Description
$storage \OAuth2\Storage\Cassandra

createSqliteDb

private createSqliteDb(\PDO $pdo): mixed

Parameters:

Parameter Type Description
$pdo \PDO

removeSqliteDb

private removeSqliteDb(): mixed

createMysqlDb

private createMysqlDb(\PDO $pdo): mixed

Parameters:

Parameter Type Description
$pdo \PDO

removeMysqlDb

private removeMysqlDb(\PDO $pdo): mixed

Parameters:

Parameter Type Description
$pdo \PDO

createPostgresDb

private createPostgresDb(): mixed

populatePostgresDb

private populatePostgresDb(\PDO $pdo): mixed

Parameters:

Parameter Type Description
$pdo \PDO

removePostgresDb

private removePostgresDb(): mixed

runPdoSql

public runPdoSql(\PDO $pdo): mixed

Parameters:

Parameter Type Description
$pdo \PDO

getSqliteDir

public getSqliteDir(): mixed

getConfigDir

public getConfigDir(): mixed

createCouchbaseDB

private createCouchbaseDB(\Couchbase $db): mixed

Parameters:

Parameter Type Description
$db \Couchbase

clearCouchbase

private clearCouchbase(\Couchbase $cb): mixed

Parameters:

Parameter Type Description
$cb \Couchbase

createMongo

private createMongo(\MongoDB $db): mixed

Parameters:

Parameter Type Description
$db \MongoDB

removeMongo

public removeMongo(\MongoDB $db): mixed

Parameters:

Parameter Type Description
$db \MongoDB

createMongoDB

private createMongoDB(\MongoDB\Database $db): mixed

Parameters:

Parameter Type Description
$db \MongoDB\Database

removeMongoDB

public removeMongoDB(\MongoDB\Database $db): mixed

Parameters:

Parameter Type Description
$db \MongoDB\Database

createRedisDb

private createRedisDb(\OAuth2\Storage\Redis $storage): mixed

Parameters:

Parameter Type Description
$storage \OAuth2\Storage\Redis

getTestPublicKey

public getTestPublicKey(): mixed

getTestPrivateKey

private getTestPrivateKey(): mixed

getDynamoDbStorage

public getDynamoDbStorage(): mixed

getDynamoDbClient

private getDynamoDbClient(): mixed

deleteDynamoDb

private deleteDynamoDb(\Aws\DynamoDb\DynamoDbClient $client, mixed $prefix = null, mixed $waitForDeletion = false): mixed

Parameters:

Parameter Type Description
$client \Aws\DynamoDb\DynamoDbClient
$prefix mixed
$waitForDeletion mixed

createDynamoDb

private createDynamoDb(\Aws\DynamoDb\DynamoDbClient $client, mixed $prefix = null): mixed

Parameters:

Parameter Type Description
$client \Aws\DynamoDb\DynamoDbClient
$prefix mixed

populateDynamoDb

private populateDynamoDb(mixed $client, mixed $prefix = null): mixed

Parameters:

Parameter Type Description
$client mixed
$prefix mixed

getEnvVar

private getEnvVar(mixed $var, mixed $default = null): mixed

Parameters:

Parameter Type Description
$var mixed
$default mixed


Automatically generated on 2025-03-18