├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── UPGRADE.md ├── composer.json ├── composer.lock ├── example ├── SymfonyExample.md ├── eventsourced.php ├── example1.php ├── example2_event.php ├── example3_sequential_commands.php └── tictactoe.php ├── phpunit.xml.dist ├── src └── LiteCQRS │ ├── AggregateRoot.php │ ├── AggregateRootNotFoundException.php │ ├── Command.php │ ├── Commanding │ ├── CommandBus.php │ ├── CommandHandlerLocator.php │ ├── MemoryCommandHandlerLocator.php │ └── SequentialCommandBus.php │ ├── DefaultCommand.php │ ├── DefaultDomainEvent.php │ ├── DomainEvent.php │ ├── EventStore │ ├── ConcurrencyException.php │ ├── EventSourceRepository.php │ ├── EventStore.php │ ├── EventStoreException.php │ ├── EventStream.php │ ├── EventStreamNotFoundException.php │ ├── OptimisticLocking │ │ ├── MemoryStorage.php │ │ ├── OptimisticLockingEventStore.php │ │ ├── Storage.php │ │ └── StreamData.php │ ├── SerializerInterface.php │ └── Transaction.php │ ├── Eventing │ ├── EventExecutionFailed.php │ ├── EventHandlerLocator.php │ ├── EventMessageBus.php │ ├── EventName.php │ ├── MemoryEventHandlerLocator.php │ └── SynchronousInProcessEventBus.php │ ├── Exception │ ├── BadMethodCallException.php │ └── RuntimeException.php │ ├── LiteCQRSException.php │ ├── Plugin │ ├── Monolog │ │ └── MonologLoggerFactory.php │ └── SymfonyBundle │ │ ├── Command │ │ └── DebugCommand.php │ │ ├── ContainerHandlerLocator.php │ │ ├── DependencyInjection │ │ ├── Compiler │ │ │ └── HandlerPass.php │ │ ├── Configuration.php │ │ └── LiteCQRSExtension.php │ │ ├── LiteCQRSBundle.php │ │ └── Resources │ │ └── config │ │ └── services.xml │ ├── Repository.php │ ├── Serializer │ ├── NoopSerializer.php │ ├── ReflectionSerializer.php │ └── Serializer.php │ └── Util.php └── tests ├── LiteCQRS ├── AggregateRootTest.php ├── CQRSTest.php ├── Commanding │ └── MemoryCommandHandlerLocatorTest.php ├── DefaultCommandTest.php ├── DefaultDomainEventTest.php ├── EventStore │ ├── EventSourceRepositoryTest.php │ ├── EventStoreContractTestCase.php │ ├── EventStreamTest.php │ └── OptimisticLocking │ │ └── OptimimsticLockingEventStoreTest.php ├── Plugin │ ├── JMSSerializer │ │ └── SerializerTest.php │ └── SymfonyBundle │ │ └── ContainerTest.php └── Serializer │ └── ReflectionSerializerTest.php └── bootstrap.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/README.md -------------------------------------------------------------------------------- /UPGRADE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/UPGRADE.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/composer.lock -------------------------------------------------------------------------------- /example/SymfonyExample.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/example/SymfonyExample.md -------------------------------------------------------------------------------- /example/eventsourced.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/example/eventsourced.php -------------------------------------------------------------------------------- /example/example1.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/example/example1.php -------------------------------------------------------------------------------- /example/example2_event.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/example/example2_event.php -------------------------------------------------------------------------------- /example/example3_sequential_commands.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/example/example3_sequential_commands.php -------------------------------------------------------------------------------- /example/tictactoe.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/example/tictactoe.php -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/LiteCQRS/AggregateRoot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/src/LiteCQRS/AggregateRoot.php -------------------------------------------------------------------------------- /src/LiteCQRS/AggregateRootNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beberlei/litecqrs-php/HEAD/src/LiteCQRS/AggregateRootNotFoundException.php -------------------------------------------------------------------------------- /src/LiteCQRS/Command.php: -------------------------------------------------------------------------------- 1 |