PHP Class Pimcore\Console\Command\CacheWarmingCommand

Inheritance: extends Pimcore\Console\AbstractCommand
Show file Open project: pimcore/pimcore

Protected Properties

Property Type Description
$validAssetTypes array
$validDocumentTypes array
$validObjectTypes array
$validTypes array

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getArrayOption ( $option, $property, $singular, boolean $fallback = false ) : mixed Get one of types, document, asset or object types, handle "all" value and list input validation.
humanList ( $list, string $glue = 'or', null $template = null ) : string A,B,C -> A, B or C (with an optional template for each item)
writeWarmingMessage ( $type, $types )

Method Details

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getArrayOption() protected method

Get one of types, document, asset or object types, handle "all" value and list input validation.
protected getArrayOption ( $option, $property, $singular, boolean $fallback = false ) : mixed
$option
$property
$singular
$fallback boolean
return mixed

humanList() protected method

A,B,C -> A, B or C (with an optional template for each item)
protected humanList ( $list, string $glue = 'or', null $template = null ) : string
$list
$glue string
$template null
return string

writeWarmingMessage() protected method

protected writeWarmingMessage ( $type, $types )

Property Details

$validAssetTypes protected property

protected array $validAssetTypes
return array

$validDocumentTypes protected property

protected array $validDocumentTypes
return array

$validObjectTypes protected property

protected array $validObjectTypes
return array

$validTypes protected property

protected array $validTypes
return array