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