Files
symfony-flex-recipes-contrib/prooph.event-store-symfony-bundle.0.4.json
T
github-action botandgithub-action bot af31901ef8 Update Flex endpoint
2021-09-20 16:15:05 +00:00

45 lines
2.7 KiB
JSON

{
"locks": {
"prooph/event-store-symfony-bundle": {
"version": "0.4",
"recipe": {
"repo": "0.4",
"branch": "master",
"version": "0.4",
"ref": "a989875619b98a288abc2b636a2b5be36b4833d6"
}
}
},
"manifests": {
"prooph/event-store-symfony-bundle": {
"repository": "github.com/symfony/recipes-contrib",
"package": "prooph/event-store-symfony-bundle",
"version": "0.4",
"manifest": {
"bundles": {
"Prooph\\Bundle\\EventStore\\ProophEventStoreBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
},
"files": {
"src/Command/CreateEventStreamCommand.php": {
"contents": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Command;\n\nuse Prooph\\EventStore\\EventStore;\nuse Prooph\\EventStore\\Stream;\nuse Prooph\\EventStore\\StreamName;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nfinal class CreateEventStreamCommand extends ContainerAwareCommand\n{\n private $eventStore;\n\n public function __construct(EventStore $eventStore)\n {\n $this->eventStore = $eventStore;\n }\n\n protected function configure()\n {\n $this->setName('event-store:event-stream:create')\n ->setDescription('Create event_stream.')\n ->setHelp('This command creates the event_stream');\n }\n\n protected function execute(InputInterface $input, OutputInterface $output)\n {\n $this->eventStore->create(new Stream(new StreamName('event_stream'), new \\ArrayIterator([])));\n\n $output->writeln('<info>Event stream was created successfully.</info>');\n }\n}\n",
"executable": false,
"encoding": ""
},
"config/packages/prooph_event_store.yaml": {
"contents": "prooph_event_store:\n stores:\n default:\n event_store: 'app.event_store.default'\n\nservices:\n _defaults:\n public: false\n\n Prooph\\EventSourcing\\EventStoreIntegration\\AggregateTranslator: null\n",
"executable": false,
"encoding": ""
}
},
"origin": "prooph/event-store-symfony-bundle:0.4@github.com/symfony/recipes-contrib:master",
"is_contrib": true
}
}
}