Bootstrap
- Full name:
\OAuth2\Storage\Bootstrap
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
DYNAMODB_PHP_VERSION |
public | 'none' |
Properties
instance
- This property is static.
mysql
sqlite
postgres
mongo
mongoDb
redis
cassandra
configDir
dynamodb
couchbase
Methods
__construct
getInstance
- This method is static.
getSqlitePdo
getPostgresPdo
getPostgresDriver
getMemoryStorage
getRedisStorage
testRedisConnection
Parameters:
Parameter | Type | Description |
---|---|---|
$redis |
\Predis\Client |
getMysqlPdo
getMongo
getMongoDb
testMongoConnection
Parameters:
Parameter | Type | Description |
---|---|---|
$mongo |
\MongoClient |
testMongoDBConnection
Parameters:
Parameter | Type | Description |
---|---|---|
$mongo |
\MongoDB\Client |
getCouchbase
testCouchbaseConnection
Parameters:
Parameter | Type | Description |
---|---|---|
$couchbase |
\Couchbase |
getCassandraStorage
testCassandraConnection
Parameters:
Parameter | Type | Description |
---|---|---|
$cassandra |
\phpcassa\Connection\ConnectionPool |
removeCassandraDb
createCassandraDb
Parameters:
Parameter | Type | Description |
---|---|---|
$storage |
\OAuth2\Storage\Cassandra |
createSqliteDb
Parameters:
Parameter | Type | Description |
---|---|---|
$pdo |
\PDO |
removeSqliteDb
createMysqlDb
Parameters:
Parameter | Type | Description |
---|---|---|
$pdo |
\PDO |
removeMysqlDb
Parameters:
Parameter | Type | Description |
---|---|---|
$pdo |
\PDO |
createPostgresDb
populatePostgresDb
Parameters:
Parameter | Type | Description |
---|---|---|
$pdo |
\PDO |
removePostgresDb
runPdoSql
Parameters:
Parameter | Type | Description |
---|---|---|
$pdo |
\PDO |
getSqliteDir
getConfigDir
createCouchbaseDB
Parameters:
Parameter | Type | Description |
---|---|---|
$db |
\Couchbase |
clearCouchbase
Parameters:
Parameter | Type | Description |
---|---|---|
$cb |
\Couchbase |
createMongo
Parameters:
Parameter | Type | Description |
---|---|---|
$db |
\MongoDB |
removeMongo
Parameters:
Parameter | Type | Description |
---|---|---|
$db |
\MongoDB |
createMongoDB
Parameters:
Parameter | Type | Description |
---|---|---|
$db |
\MongoDB\Database |
removeMongoDB
Parameters:
Parameter | Type | Description |
---|---|---|
$db |
\MongoDB\Database |
createRedisDb
Parameters:
Parameter | Type | Description |
---|---|---|
$storage |
\OAuth2\Storage\Redis |
getTestPublicKey
getTestPrivateKey
getDynamoDbStorage
getDynamoDbClient
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
Parameters:
Parameter | Type | Description |
---|---|---|
$client |
\Aws\DynamoDb\DynamoDbClient | |
$prefix |
mixed |
populateDynamoDb
Parameters:
Parameter | Type | Description |
---|---|---|
$client |
mixed | |
$prefix |
mixed |
getEnvVar
Parameters:
Parameter | Type | Description |
---|---|---|
$var |
mixed | |
$default |
mixed |
Automatically generated on 2025-03-18