ConfigEcrireCommand
extends Command
in package
implements
RequiresSpipInterface
FinalYes
Attributes
- #[AsCommand]
- $name: 'config:ecrire'
- $description: 'Écrit des options de configuration dans spip_meta.'
Table of Contents
Interfaces
- RequiresSpipInterface
Methods
- configure() : void
- execute() : int
- decodeJson() : array<string, mixed>|null
- flattenOptions() : array<string, mixed>
- formatValue() : string
- normalizePluginPrefix() : string
- parseEntryArguments() : array<string, mixed>|null
Methods
configure()
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
intdecodeJson()
private
decodeJson(string $json, string $source, SymfonyStyle $io) : array<string, mixed>|null
Parameters
- $json : string
- $source : string
- $io : SymfonyStyle
Return values
array<string, mixed>|nullflattenOptions()
private
flattenOptions(array<string, mixed> $data[, string $prefix = '' ]) : array<string, mixed>
Parameters
- $data : array<string, mixed>
- $prefix : string = ''
Return values
array<string, mixed>formatValue()
private
formatValue(mixed $value) : string
Parameters
- $value : mixed
Return values
stringnormalizePluginPrefix()
private
normalizePluginPrefix(mixed $plugin) : string
Parameters
- $plugin : mixed
Return values
stringparseEntryArguments()
private
parseEntryArguments(array<int, string> $entries, mixed $singleValueOption, string $pluginPrefix, SymfonyStyle $io) : array<string, mixed>|null
Parameters
- $entries : array<int, string>
- $singleValueOption : mixed
- $pluginPrefix : string
- $io : SymfonyStyle