DriverManager
class DriverManager implements DriverManagerInterface
Driver manager
Properties
protected DriverRegistryInterface | $driverRegistry | Driver registry adapter |
Methods
DriverInterface|false
create(string $name, array $options = [], array|null $config = null)
Create driver
bool
install(string|object $name, string|null $class = null, string|null $category = null, string|null $title = null, string|null $description = null, string|null $version = null, array $config = [], string|null $extension = null)
Install driver
array|false
getDriverParams(string|object $driver)
Get driver params
bool
unInstall(string $name)
Uninstall driver
bool
has(string $name)
Return true if driver exsits
object|false
getDriver(string $name)
Get driver
bool
saveConfig(string $name, array|object $config)
Save driver config
Properties
getConfig(string $name)
Get driver config
array
getList(string|null $category = null, int|null $status = null)
Get drivers list
bool
enable(string $name)
Enable driver
bool
disable(string $name)
Disable driver
Details
at line 36
__construct(DriverRegistryInterface $driverRegistry)
Constructor
at line 49
DriverInterface|false
create(string $name, array $options = [], array|null $config = null)
Create driver
at line 83
bool
install(string|object $name, string|null $class = null, string|null $category = null, string|null $title = null, string|null $description = null, string|null $version = null, array $config = [], string|null $extension = null)
Install driver
at line 118
protected array|false
getDriverParams(string|object $driver)
Get driver params
at line 151
bool
unInstall(string $name)
Uninstall driver
at line 162
bool
has(string $name)
Return true if driver exsits
at line 173
object|false
getDriver(string $name)
Get driver
at line 185
bool
saveConfig(string $name, array|object $config)
Save driver config
at line 198
Properties
getConfig(string $name)
Get driver config
at line 212
array
getList(string|null $category = null, int|null $status = null)
Get drivers list
at line 223
bool
enable(string $name)
Enable driver
at line 234
bool
disable(string $name)
Disable driver