AutoPublishCommand extends Command
Call on the workspace logic to publish workspaces whose publication date is in the past
Table of Contents
Methods
- __construct() : mixed
- configure() : mixed
- Configuring the command options
- execute() : int
- Executes the command to find versioned records
- getAffectedWorkspacesToPublish() : Result
- Fetch all sys_workspace records which could fit
Methods
__construct()
public
__construct(WorkspaceService $workspaceService, ConnectionPool $connectionPool) : mixed
Parameters
- $workspaceService : WorkspaceService
- $connectionPool : ConnectionPool
configure()
Configuring the command options
public
configure() : mixed
execute()
Executes the command to find versioned records
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
intgetAffectedWorkspacesToPublish()
Fetch all sys_workspace records which could fit
protected
getAffectedWorkspacesToPublish() : Result