Removed comments from config files

This commit is contained in:
Gildas Quéméner
2018-06-19 20:05:11 +01:00
parent 838f441fd5
commit 47394ca8b1
5 changed files with 17 additions and 28 deletions
@@ -8,12 +8,8 @@ services:
tags:
- { name: 'prooph_event_store.default.plugin' }
# The app.event_store.default service must be configured with a
# Prooph\EventStore\TransactionalEventStore instance in order to user the following plugin.
# Read more: http://docs.getprooph.org/event-store/implementations/pdo_event_store/variants.html#3-2-1-2
#
# Prooph\EventStoreBusBridge\TransactionManager:
# arguments:
# - '@app.event_store.default'
# tags:
# - { name: 'prooph_service_bus.default_command_bus.plugin' }
Prooph\EventStoreBusBridge\TransactionManager:
arguments:
- '@app.event_store.default'
tags:
- { name: 'prooph_service_bus.default_command_bus.plugin' }
@@ -2,10 +2,6 @@ prooph_event_store:
stores:
default:
event_store: 'app.event_store.default'
# repositories:
# App\EventSourcing\TodoRepository:
# aggregate_type: App\EventSourcing\Todo
# aggregate_translator: Prooph\EventSourcing\EventStoreIntegration\AggregateTranslator
services:
_defaults:
@@ -4,14 +4,22 @@ declare(strict_types=1);
namespace App\Command;
use Prooph\EventStore\EventStore;
use Prooph\EventStore\Stream;
use Prooph\EventStore\StreamName;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class CreateEventStreamCommand extends ContainerAwareCommand
final class CreateEventStreamCommand extends ContainerAwareCommand
{
private $eventStore;
public function __construct(EventStore $eventStore)
{
$this->eventStore = $eventStore;
}
protected function configure()
{
$this->setName('event-store:event-stream:create')
@@ -21,9 +29,8 @@ class CreateEventStreamCommand extends ContainerAwareCommand
protected function execute(InputInterface $input, OutputInterface $output)
{
$eventStore = $this->getContainer()->get('prooph_event_store.app');
$this->eventStore->create(new Stream(new StreamName('event_stream'), new \ArrayIterator([])));
$eventStore->create(new Stream(new StreamName('event_stream'), new \ArrayIterator([])));
$output->writeln('<info>Event stream was created successfully.</info>');
}
}
@@ -2,6 +2,8 @@ services:
_defaults:
public: false
Prooph\EventStore\EventStore: '@app.event_store.default'
app.event_store.default:
class: Prooph\EventStore\Pdo\MySqlEventStore
arguments:
@@ -11,15 +11,3 @@ services:
public: false
Prooph\ServiceBus\CommandBus: '@prooph_service_bus.default_command_bus'
# Autoregister your message handlers here
# Make sure App\Messaging\* services are not overriden in `config/services.yaml`
# Read more at https://github.com/prooph/service-bus-symfony-bundle/blob/master/doc/routing.md
#
# command_handlers:
# resource: '../../src/Messaging/Command/*Handler.php'
# namespace: App\Messaging\Command\
# public: true
# autowire: true
# tags:
# - { name: 'prooph_service_bus.default_command_bus.route_target', message_detection: true }