예제 #1
0
 /**
  * @param Application $application
  * @param EventStore $store
  */
 public function __construct(Application $application, EventStore $store)
 {
     $this->application = $application;
     $this->store = $store;
     $this->applyEvents($store->load());
 }
예제 #2
0
 function loadEvents()
 {
     file_put_contents($this->file, $this->getContent());
     $events = $this->store->load();
     $this->assert->equals($events, $this->getEvents());
 }