├── .coveralls.yml ├── .editorconfig ├── .gitignore ├── .php_cs.dist ├── .scrutinizer.yml ├── .sensiolabs.yml ├── .styleci.yml ├── .travis.yml ├── LICENSE ├── README.md ├── UPGRADE-2.0.md ├── composer.json ├── docs ├── base.md ├── listener │ ├── listener.md │ ├── locator │ │ ├── direct_binding.md │ │ ├── psr-11_container.md │ │ └── symfony_container.md │ └── subscriber.md ├── queue │ ├── bus.md │ ├── pull │ │ ├── memory.md │ │ ├── predis.md │ │ └── pull.md │ ├── queue.md │ ├── serialize │ │ ├── optimized.md │ │ ├── payload.md │ │ └── simple.md │ └── subscribe │ │ ├── amqp.md │ │ ├── executing.md │ │ ├── predis.md │ │ └── subscribe.md └── raise_in_self.md ├── phpunit.xml.dist ├── src ├── Aggregator │ ├── AbstractAggregateEvents.php │ ├── AbstractAggregateEventsRaiseInSelf.php │ ├── AggregateEvents.php │ ├── AggregateEventsRaiseInSelfTrait.php │ └── AggregateEventsTrait.php ├── Bus │ ├── EventBus.php │ ├── ListenerLocatedEventBus.php │ └── QueueEventBus.php ├── Event.php ├── Listener │ ├── Locator │ │ ├── ContainerEventListenerLocator.php │ │ ├── DirectBindingEventListenerLocator.php │ │ ├── EventListenerLocator.php │ │ └── SymfonyContainerEventListenerLocator.php │ └── Subscriber.php └── Queue │ ├── EventQueue.php │ ├── Pull │ ├── MemoryPullEventQueue.php │ ├── PredisPullEventQueue.php │ └── PullEventQueue.php │ ├── Serializer │ ├── Serializer.php │ └── SymfonySerializer.php │ └── Subscribe │ ├── AMQPSubscribeEventQueue.php │ ├── ExecutingSubscribeEventQueue.php │ ├── PredisSubscribeEventQueue.php │ └── SubscribeEventQueue.php └── tests ├── Aggregator ├── AggregateEventsRaiseInSelfTest.php └── AggregateEventsTest.php ├── Bus ├── ListenerLocatedEventBusTest.php └── QueueEventBusTest.php ├── Fixture ├── Acme_Demo_PurchaseOrderCreated.php ├── DemoAggregator.php ├── DemoAggregatorRaiseInSelf.php ├── Listener │ ├── PurchaseOrderCompletedEventListener.php │ └── PurchaseOrderCreatedEventListener.php ├── PurchaseOrderCompletedEvent.php ├── PurchaseOrderCreatedEvent.php └── Subscriber │ └── PurchaseOrderSubscriber.php ├── Listener └── Locator │ ├── ContainerEventListenerLocatorTest.php │ ├── DirectBindingEventListenerLocatorTest.php │ └── SymfonyContainerEventListenerLocatorTest.php ├── Queue ├── Pull │ ├── MemoryPullEventQueueTest.php │ └── PredisPullEventQueueTest.php ├── Serializer │ └── SymfonySerializerTest.php └── Subscribe │ ├── AMQPSubscribeEventQueueTest.php │ ├── ExecutingSubscribeEventQueueTest.php │ └── PredisSubscribeEventQueueTest.php └── bootstrap.php /.coveralls.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/.coveralls.yml -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | /build/ 3 | phpunit.xml 4 | composer.lock 5 | -------------------------------------------------------------------------------- /.php_cs.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/.php_cs.dist -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.sensiolabs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/.sensiolabs.yml -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/.styleci.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/README.md -------------------------------------------------------------------------------- /UPGRADE-2.0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/UPGRADE-2.0.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/composer.json -------------------------------------------------------------------------------- /docs/base.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/base.md -------------------------------------------------------------------------------- /docs/listener/listener.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/listener/listener.md -------------------------------------------------------------------------------- /docs/listener/locator/direct_binding.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/listener/locator/direct_binding.md -------------------------------------------------------------------------------- /docs/listener/locator/psr-11_container.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/listener/locator/psr-11_container.md -------------------------------------------------------------------------------- /docs/listener/locator/symfony_container.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/listener/locator/symfony_container.md -------------------------------------------------------------------------------- /docs/listener/subscriber.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/listener/subscriber.md -------------------------------------------------------------------------------- /docs/queue/bus.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/bus.md -------------------------------------------------------------------------------- /docs/queue/pull/memory.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/pull/memory.md -------------------------------------------------------------------------------- /docs/queue/pull/predis.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/pull/predis.md -------------------------------------------------------------------------------- /docs/queue/pull/pull.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/pull/pull.md -------------------------------------------------------------------------------- /docs/queue/queue.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/queue.md -------------------------------------------------------------------------------- /docs/queue/serialize/optimized.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/serialize/optimized.md -------------------------------------------------------------------------------- /docs/queue/serialize/payload.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/serialize/payload.md -------------------------------------------------------------------------------- /docs/queue/serialize/simple.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/serialize/simple.md -------------------------------------------------------------------------------- /docs/queue/subscribe/amqp.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/subscribe/amqp.md -------------------------------------------------------------------------------- /docs/queue/subscribe/executing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/subscribe/executing.md -------------------------------------------------------------------------------- /docs/queue/subscribe/predis.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/subscribe/predis.md -------------------------------------------------------------------------------- /docs/queue/subscribe/subscribe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/queue/subscribe/subscribe.md -------------------------------------------------------------------------------- /docs/raise_in_self.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/docs/raise_in_self.md -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Aggregator/AbstractAggregateEvents.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Aggregator/AbstractAggregateEvents.php -------------------------------------------------------------------------------- /src/Aggregator/AbstractAggregateEventsRaiseInSelf.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Aggregator/AbstractAggregateEventsRaiseInSelf.php -------------------------------------------------------------------------------- /src/Aggregator/AggregateEvents.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Aggregator/AggregateEvents.php -------------------------------------------------------------------------------- /src/Aggregator/AggregateEventsRaiseInSelfTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Aggregator/AggregateEventsRaiseInSelfTrait.php -------------------------------------------------------------------------------- /src/Aggregator/AggregateEventsTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Aggregator/AggregateEventsTrait.php -------------------------------------------------------------------------------- /src/Bus/EventBus.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Bus/EventBus.php -------------------------------------------------------------------------------- /src/Bus/ListenerLocatedEventBus.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Bus/ListenerLocatedEventBus.php -------------------------------------------------------------------------------- /src/Bus/QueueEventBus.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Bus/QueueEventBus.php -------------------------------------------------------------------------------- /src/Event.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Event.php -------------------------------------------------------------------------------- /src/Listener/Locator/ContainerEventListenerLocator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Listener/Locator/ContainerEventListenerLocator.php -------------------------------------------------------------------------------- /src/Listener/Locator/DirectBindingEventListenerLocator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Listener/Locator/DirectBindingEventListenerLocator.php -------------------------------------------------------------------------------- /src/Listener/Locator/EventListenerLocator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Listener/Locator/EventListenerLocator.php -------------------------------------------------------------------------------- /src/Listener/Locator/SymfonyContainerEventListenerLocator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Listener/Locator/SymfonyContainerEventListenerLocator.php -------------------------------------------------------------------------------- /src/Listener/Subscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Listener/Subscriber.php -------------------------------------------------------------------------------- /src/Queue/EventQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/EventQueue.php -------------------------------------------------------------------------------- /src/Queue/Pull/MemoryPullEventQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Pull/MemoryPullEventQueue.php -------------------------------------------------------------------------------- /src/Queue/Pull/PredisPullEventQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Pull/PredisPullEventQueue.php -------------------------------------------------------------------------------- /src/Queue/Pull/PullEventQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Pull/PullEventQueue.php -------------------------------------------------------------------------------- /src/Queue/Serializer/Serializer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Serializer/Serializer.php -------------------------------------------------------------------------------- /src/Queue/Serializer/SymfonySerializer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Serializer/SymfonySerializer.php -------------------------------------------------------------------------------- /src/Queue/Subscribe/AMQPSubscribeEventQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Subscribe/AMQPSubscribeEventQueue.php -------------------------------------------------------------------------------- /src/Queue/Subscribe/ExecutingSubscribeEventQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Subscribe/ExecutingSubscribeEventQueue.php -------------------------------------------------------------------------------- /src/Queue/Subscribe/PredisSubscribeEventQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Subscribe/PredisSubscribeEventQueue.php -------------------------------------------------------------------------------- /src/Queue/Subscribe/SubscribeEventQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/src/Queue/Subscribe/SubscribeEventQueue.php -------------------------------------------------------------------------------- /tests/Aggregator/AggregateEventsRaiseInSelfTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Aggregator/AggregateEventsRaiseInSelfTest.php -------------------------------------------------------------------------------- /tests/Aggregator/AggregateEventsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Aggregator/AggregateEventsTest.php -------------------------------------------------------------------------------- /tests/Bus/ListenerLocatedEventBusTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Bus/ListenerLocatedEventBusTest.php -------------------------------------------------------------------------------- /tests/Bus/QueueEventBusTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Bus/QueueEventBusTest.php -------------------------------------------------------------------------------- /tests/Fixture/Acme_Demo_PurchaseOrderCreated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Fixture/Acme_Demo_PurchaseOrderCreated.php -------------------------------------------------------------------------------- /tests/Fixture/DemoAggregator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Fixture/DemoAggregator.php -------------------------------------------------------------------------------- /tests/Fixture/DemoAggregatorRaiseInSelf.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Fixture/DemoAggregatorRaiseInSelf.php -------------------------------------------------------------------------------- /tests/Fixture/Listener/PurchaseOrderCompletedEventListener.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Fixture/Listener/PurchaseOrderCompletedEventListener.php -------------------------------------------------------------------------------- /tests/Fixture/Listener/PurchaseOrderCreatedEventListener.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Fixture/Listener/PurchaseOrderCreatedEventListener.php -------------------------------------------------------------------------------- /tests/Fixture/PurchaseOrderCompletedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Fixture/PurchaseOrderCompletedEvent.php -------------------------------------------------------------------------------- /tests/Fixture/PurchaseOrderCreatedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Fixture/PurchaseOrderCreatedEvent.php -------------------------------------------------------------------------------- /tests/Fixture/Subscriber/PurchaseOrderSubscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Fixture/Subscriber/PurchaseOrderSubscriber.php -------------------------------------------------------------------------------- /tests/Listener/Locator/ContainerEventListenerLocatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Listener/Locator/ContainerEventListenerLocatorTest.php -------------------------------------------------------------------------------- /tests/Listener/Locator/DirectBindingEventListenerLocatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Listener/Locator/DirectBindingEventListenerLocatorTest.php -------------------------------------------------------------------------------- /tests/Listener/Locator/SymfonyContainerEventListenerLocatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Listener/Locator/SymfonyContainerEventListenerLocatorTest.php -------------------------------------------------------------------------------- /tests/Queue/Pull/MemoryPullEventQueueTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Queue/Pull/MemoryPullEventQueueTest.php -------------------------------------------------------------------------------- /tests/Queue/Pull/PredisPullEventQueueTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Queue/Pull/PredisPullEventQueueTest.php -------------------------------------------------------------------------------- /tests/Queue/Serializer/SymfonySerializerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Queue/Serializer/SymfonySerializerTest.php -------------------------------------------------------------------------------- /tests/Queue/Subscribe/AMQPSubscribeEventQueueTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Queue/Subscribe/AMQPSubscribeEventQueueTest.php -------------------------------------------------------------------------------- /tests/Queue/Subscribe/ExecutingSubscribeEventQueueTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Queue/Subscribe/ExecutingSubscribeEventQueueTest.php -------------------------------------------------------------------------------- /tests/Queue/Subscribe/PredisSubscribeEventQueueTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/Queue/Subscribe/PredisSubscribeEventQueueTest.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpslab/domain-event/HEAD/tests/bootstrap.php --------------------------------------------------------------------------------