Select Git revision
BlockListCommand.php
BlockListCommand.php 3.84 KiB
<?php
declare(strict_types=1);
/**
* Copyright (c) 2024 TechDivision GmbH
* All rights reserved
*
* This product includes proprietary software developed at TechDivision GmbH, Germany
* For more information see https://www.techdivision.com/
*
* To obtain a valid license for using this software please contact us at
* license@techdivision.com
*
* @copyright Copyright (c) 2024 TechDivision GmbH (https://www.techdivision.com)
* @author TechDivision Team Zero <zero@techdivision.com>
* @link https://www.techdivision.com/
*/
namespace Firegento\ContentProvisioning\Model\Console;
use Firegento\ContentProvisioning\Model\Query\GetBlockEntryList as GetBlockEntryList;
use Firegento\ContentProvisioning\Model\Query\GetChangedBlocksIdentifier;
use Firegento\ContentProvisioning\Model\Query\GetFilesContentInformation;
use Firegento\ContentProvisioning\Model\RenderChangedBlockList;
use Magento\Framework\Exception\LocalizedException;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
/**
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class BlockListCommand extends Command
{
public const PARAM_CHANGED_ONLY = 'changed-only';
/**
* @var GetBlockEntryList
*/
private GetBlockEntryList $getAllBlockEntries;
/**
* @var GetChangedBlocksIdentifier
*/
private GetChangedBlocksIdentifier $getChangedBlocksIdentifier;
/**
* @var RenderChangedBlockList
*/
private RenderChangedBlockList $renderChangedBlockList;
/**
* @var GetFilesContentInformation
*/
private GetFilesContentInformation $GetFilesContentInformation;
/**
* @param GetBlockEntryList $getAllBlockEntries
* @param GetFilesContentInformation $getFilesContentInformation
* @param GetChangedBlocksIdentifier $getChangedBlocksIdentifier
* @param RenderChangedBlockList $renderChangedBlockList
* @param string|null $name
*/
public function __construct(
GetBlockEntryList $getAllBlockEntries,
GetFilesContentInformation $getFilesContentInformation,
GetChangedBlocksIdentifier $getChangedBlocksIdentifier,
RenderChangedBlockList $renderChangedBlockList,