Skip to content

Instantly share code, notes, and snippets.


adamwojs/ReproducerCommand.php Secret

Created Aug 19, 2019
What would you like to do?
// src/AppBundle/Command/ReproducerCommand.php
namespace AppBundle\Command;
use EzSystems\EzPlatformPageFieldType\FieldType\LandingPage\Type;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
final class ReproducerCommand extends Command
/** @var \EzSystems\EzPlatformPageFieldType\FieldType\LandingPage\Type */
private $fieldType;
public function __construct(Type $fieldType)
$this->fieldType = $fieldType;
protected function execute(InputInterface $input, OutputInterface $output)
$value = $this->fieldType->getEmptyValue();
// Number of page zones !== number of zones in layout.
# /app/config/sevices.yml
autowire: true
autoconfigure: true
public: false
AppBundle\Command\ReproducerCommand: ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.