\App\ServiceModule\ModelsIServiceManager

Interface for tools for managing service

Summary

Methods
Constants
disable()
enable()
isActive()
isEnabled()
start()
stop()
restart()
getStatus()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

disable()

disable(?string  $serviceName = null) : void

Disables the service

Parameters

?string $serviceName

enable()

enable(?string  $serviceName = null) : void

Enables the service

Parameters

?string $serviceName

isActive()

isActive(?string  $serviceName = null) : bool

Checks if the service is active

Parameters

?string $serviceName

Returns

bool —

Is service active?

isEnabled()

isEnabled(?string  $serviceName = null) : bool

Checks if the service is enabled

Parameters

?string $serviceName

Returns

bool —

Is service enabled?

start()

start(?string  $serviceName = null) : void

Starts the service

Parameters

?string $serviceName

stop()

stop(?string  $serviceName = null) : void

Stops the service

Parameters

?string $serviceName

restart()

restart(?string  $serviceName = null) : void

Restarts the service

Parameters

?string $serviceName

getStatus()

getStatus(?string  $serviceName = null) : string

Returns status of the service

Parameters

?string $serviceName

Returns

string —

Service status