CreateImageSizeItemsCommand
extends Command
in package
Table of Contents
Constants
- DEFAULT_BREAKPOINTS = [576, 768, 992, 1200, 1400]
- MODE_FIRST = 1
- MODE_INTERMEDIATE = 2
- MODE_LAST = 3
Properties
- $defaultName : mixed
- $contaoFramework : ContaoFramework
- $utils : Utils
Methods
- __construct() : mixed
- configure() : mixed
- {@inheritdoc}
- createItem() : mixed
- execute() : mixed
- {@inheritdoc}
- createImageSizes() : mixed
Constants
DEFAULT_BREAKPOINTS
public
mixed
DEFAULT_BREAKPOINTS
= [576, 768, 992, 1200, 1400]
MODE_FIRST
public
mixed
MODE_FIRST
= 1
MODE_INTERMEDIATE
public
mixed
MODE_INTERMEDIATE
= 2
MODE_LAST
public
mixed
MODE_LAST
= 3
Properties
$defaultName
protected
static mixed
$defaultName
= 'huh:utils:create-image-size-items'
$contaoFramework
private
ContaoFramework
$contaoFramework
$utils
private
Utils
$utils
Methods
__construct()
public
__construct(ContaoFramework $contaoFramework, Utils $utils) : mixed
Parameters
- $contaoFramework : ContaoFramework
- $utils : Utils
configure()
{@inheritdoc}
protected
configure() : mixed
createItem()
protected
createItem(ImageSizeModel $imageSize, int $index, int $breakpoint, int|null $nextBreakpoint, int $mode) : mixed
Parameters
- $imageSize : ImageSizeModel
- $index : int
- $breakpoint : int
- $nextBreakpoint : int|null
- $mode : int
execute()
{@inheritdoc}
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
createImageSizes()
private
createImageSizes(SymfonyStyle $io, array<string|int, mixed> $breakpoints[, array<string|int, mixed> $imageSizeIds = [] ]) : mixed
Parameters
- $io : SymfonyStyle
- $breakpoints : array<string|int, mixed>
- $imageSizeIds : array<string|int, mixed> = []