ConfigLireCommand
extends Command
in package
implements
RequiresSpipInterface
FinalYes
Attributes
- #[AsCommand]
- $name: 'config:lire'
- $description: 'Lit des options de configuration depuis spip_meta.'
Table of Contents
Interfaces
- RequiresSpipInterface
Methods
- configure() : void
- execute() : int
- formatValue() : string
- normalizeKeys() : array<int, string>
- toReadableOutput() : string
- writeFile() : bool
Methods
configure()
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
intformatValue()
private
formatValue(mixed $value) : string
Parameters
- $value : mixed
Return values
stringnormalizeKeys()
private
normalizeKeys(array<int, string> $rawOptions) : array<int, string>
Parameters
- $rawOptions : array<int, string>
Return values
array<int, string>toReadableOutput()
private
toReadableOutput(array<string, mixed> $data) : string
Parameters
- $data : array<string, mixed>
Return values
stringwriteFile()
private
writeFile(string $file, string $payload) : bool
Parameters
- $file : string
- $payload : string