Skip to content
Snippets Groups Projects
Select Git revision
  • c968b425990f6964099f6c2df7b1c84010f5403c
  • develop default protected
  • 1.3 protected
  • 1.1
  • 1.2 protected
  • 1.0
  • 13-export-cli-command
  • 1.7.0
  • 1.6.0
  • 1.5.0
  • 1.4.3
  • 1.4.2
  • 1.4.1
  • 1.4.0
  • 1.3.7
  • 1.3.6
  • 1.3.5
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.1.4
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.0.6
27 results

BlockListCommand.php

Blame
  • 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,