public function commit()
    {
        $this->assert();

        $current = $this->current;
        $this->current = $current->getParentKeepingChildren();

        if (!$this->current instanceof Transaction) {
            // There are no transactions, dispatch all reserved payloads
            foreach ($current->flatten() as $payload) {
                $payload->fire();
            }
        }
    }
public function commit()
    {
        $this->assert();

        $current = $this->current;
        $this->current = $current->getParentKeepingChildren();

        if (!$this->current instanceof Transaction) {
            // There are no transactions, dispatch all reserved payloads
            foreach ($current->flatten() as $payload) {
                $payload->fire();
            }
        }
    }
public function commit ( ) { $ this -> assert ( ) ; $ current = $ this -> current ; $ this -> current = $ current -> getParentKeepingChildren ( ) ; if ( ! $ this -> current instanceof Transaction ) { // There are no transactions, dispatch all reserved payloads foreach ( $ current -> flatten ( ) as $ payload ) { $ payload -> fire ( ) ; } } }
Should be called after transaction committed.

@return void
Should be called after transaction committed .