\thinkManager

Summary

Methods
Properties
Constants
__construct()
forgetDriver()
getDefaultDriver()
__call()
No public properties found
No constants found
driver()
getDriver()
resolveType()
resolveConfig()
resolveClass()
resolveParams()
createDriver()
$app
$drivers
$namespace
N/A
No private methods found
No private properties found
N/A

Properties

$app

$app : \think\App

Type

App

$drivers

$drivers : array

驱动

Type

array

$namespace

$namespace : string

驱动的命名空间

Type

string

Methods

__construct()

__construct(\think\App  $app) : mixed

Parameters

\think\App $app

Returns

mixed —

forgetDriver()

forgetDriver(array|string|null  $name = null) : $this

移除一个驱动实例

Parameters

array|string|null $name

Returns

$this —

getDefaultDriver()

getDefaultDriver() : string|null

默认驱动

Returns

string|null —

__call()

__call(string  $method, array  $parameters) : mixed

动态调用

Parameters

string $method
array $parameters

Returns

mixed —

driver()

driver(null|string  $name = null) : mixed

获取驱动实例

Parameters

null|string $name

Returns

mixed —

getDriver()

getDriver(string  $name) : mixed

获取驱动实例

Parameters

string $name

Returns

mixed —

resolveType()

resolveType(string  $name) : mixed

获取驱动类型

Parameters

string $name

Returns

mixed —

resolveConfig()

resolveConfig(string  $name) : mixed

获取驱动配置

Parameters

string $name

Returns

mixed —

resolveClass()

resolveClass(string  $type) : string

获取驱动类

Parameters

string $type

Returns

string —

resolveParams()

resolveParams( $name) : array

获取驱动参数

Parameters

$name

Returns

array —

createDriver()

createDriver(string  $name) : mixed

创建驱动

Parameters

string $name

Returns

mixed —