SessionMetadataGcCommand

Extends \Joomla\Console\Command\AbstractCommand

Console command for performing session metadata garbage collection

since

4.0.0

Methods

__construct

Instantiate the command.

__construct(\Joomla\Session\SessionInterface $session, \Joomla\CMS\Session\MetadataManager $metadataManager) 
since

4.0.0

Arguments

$session

\Joomla\Session\SessionInterfaceThe session object.

$metadataManager

\Joomla\CMS\Session\MetadataManagerThe session metadata manager.

configure

Configure the command.

configure() : void
since

4.0.0

doExecute

Internal function to execute the command.

doExecute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : integer
since

4.0.0

Arguments

$input

\Symfony\Component\Console\Input\InputInterfaceThe input to inject into the command.

$output

\Symfony\Component\Console\Output\OutputInterfaceThe output to inject into the command.

Response

integerThe command exit code

Properties

defaultName

The default command name

static
since

4.0.0

Type(s)

string

metadataManager

The session metadata manager.

session

The session object.

since

4.0.0

Type(s)

\Joomla\Session\SessionInterface