DatabaseOptimizeCommand
extends Command
in package
implements
RequiresSpipInterface
FinalYes
Attributes
- #[AsCommand]
- $name: 'database:optimize'
- $aliases: ['sql:optimize']
- $description: 'Optimise les tables SQL de la base de données.'
Table of Contents
Interfaces
- RequiresSpipInterface
Properties
Methods
- __construct() : mixed
- configure() : void
- execute() : int
- optimizeTable() : void
Properties
$optimiserTask read-only
private
OptimiserTask
$optimiserTask
Methods
__construct()
public
__construct(OptimiserTask $optimiserTask) : mixed
Parameters
- $optimiserTask : OptimiserTask
configure()
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
intoptimizeTable()
private
optimizeTable(SymfonyStyle $io, string $table, bool $reorder) : void
Parameters
- $io : SymfonyStyle
- $table : string
- $reorder : bool