Documentation du code de SPIP et de ses plugins

SPIP

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

execute()

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

formatValue()

private formatValue(mixed $value) : string
Parameters
$value : mixed
Return values
string

normalizeKeys()

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
string

writeFile()

private writeFile(string $file, string $payload) : bool
Parameters
$file : string
$payload : string
Return values
bool

        
On this page

Search results