eventStore = $eventStore; } protected function configure() { $this->setName('event-store:event-stream:create') ->setDescription('Create event_stream.') ->setHelp('This command creates the event_stream'); } protected function execute(InputInterface $input, OutputInterface $output) { $this->eventStore->create(new Stream(new StreamName('event_stream'), new \ArrayIterator([]))); $output->writeln('Event stream was created successfully.'); } }