‪TYPO3CMS  ‪main
TYPO3\CMS\Workspaces\Command\AutoPublishCommand Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\Command\AutoPublishCommand:

Public Member Functions

 __construct (private readonly WorkspaceService $workspaceService, private readonly ConnectionPool $connectionPool)
 
 configure ()
 

Protected Member Functions

 execute (InputInterface $input, OutputInterface $output)
 
Doctrine DBAL Result getAffectedWorkspacesToPublish ()
 

Detailed Description

Call on the workspace logic to publish workspaces whose publication date is in the past.

Definition at line 39 of file AutoPublishCommand.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Workspaces\Command\AutoPublishCommand::__construct ( private readonly WorkspaceService  $workspaceService,
private readonly ConnectionPool  $connectionPool 
)

Definition at line 41 of file AutoPublishCommand.php.

Member Function Documentation

◆ configure()

TYPO3\CMS\Workspaces\Command\AutoPublishCommand::configure ( )

Configuring the command options

Definition at line 51 of file AutoPublishCommand.php.

◆ execute()

TYPO3\CMS\Workspaces\Command\AutoPublishCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

◆ getAffectedWorkspacesToPublish()

Doctrine DBAL Result TYPO3\CMS\Workspaces\Command\AutoPublishCommand::getAffectedWorkspacesToPublish ( )
protected

Fetch all sys_workspace records which could fit

Returns
‪\Doctrine\DBAL\Result

Definition at line 99 of file AutoPublishCommand.php.

References $GLOBALS, and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Workspaces\Command\AutoPublishCommand\execute().