final class PackPackageCommand extends Command (View source)

Constants

RETURN_CODE_ON_FAILURE

The return code we should return when an exception is thrown while running the command.

PACKAGEFORMAT_LEGACY

PACKAGEFORMAT_CURRENT

SHORTTAGS_ALL

SHORTTAGS_KEEPECHO

SHORTTAGS_NO

KEEP_DOT

KEEP_SOURCES

YNA_YES

YNA_AUTO

YNA_NO

ZIPOUT_AUTO

Methods

run(InputInterface $input, OutputInterface $output)

{@inheritdoc}

from  Command
writeError(OutputInterface $output, Exception|Throwable $error)

Write an exception.

from  Command
addEnvOption()

Add the "env" option to the command options.

from  Command
configure()

No description

execute(InputInterface $input, OutputInterface $output)

No description

static stdClass
parseInput(InputInterface $input)

No description

static 
processDirectory($state, OutputInterface $output, $dirAbs, $dirRel)

No description

static string|null
expandShortTags($phpFile, $expandShortEcho)

No description

Details

run(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

protected writeError(OutputInterface $output, Exception|Throwable $error)

Write an exception.

Parameters

OutputInterface $output
Exception|Throwable $error

protected Command addEnvOption()

Add the "env" option to the command options.

Return Value

Command

protected configure()

No description

protected execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

static protected stdClass parseInput(InputInterface $input)

No description

Parameters

InputInterface $input

Return Value

stdClass

{

@var string $packageHandle The package handle @var string $packageDirectory The package directory @var string|null $packageVersion The package version (if retrieved) @var string|null $packageFormat The package format (if retrieved) - One of the PackPackageCommand::PACKAGEFORMAT constants @var string $shortTags One of the PackPackageCommand::SHORTTAGS constants @var string $compileIcons One of the PackPackageCommand::YNA constants @var string $compileTranslations One of the PackPackageCommand::YNA constants @var array $keep List of PackPackageCommand::KEEP_ constants @var bool $updateSourceDirectory @var string|null $zipFilename }

static private processDirectory($state, OutputInterface $output, $dirAbs, $dirRel)

No description

Parameters

$state
OutputInterface $output
$dirAbs
$dirRel

static protected string|null expandShortTags($phpFile, $expandShortEcho)

No description

Parameters

$phpFile
$expandShortEcho

Return Value

string|null