Skip to content

Commit

Permalink
[PageFlow] removed unused statement from the PageFlowGenerator::gener…
Browse files Browse the repository at this point in the history
…ate() method
  • Loading branch information
iteman committed Aug 12, 2013
1 parent fbc6272 commit d5f820e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Piece/Flow/PageFlow/PageFlowGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ public function generate()
}

if (!empty($definition['lastState'])) {
if (in_array($definition['lastState']['name'], array(StateInterface::STATE_INITIAL, StateInterface::STATE_FINAL))) {
throw new ProtectedStateException("The state [ {$definition['lastState']['name']} ] cannot be used in flow definitions.");
}

if (empty($definition['final'])) {
$this->fsmBuilder->setEndState($definition['lastState']['name'], PageFlowInterface::EVENT_END);
} else {
Expand Down

0 comments on commit d5f820e

Please sign in to comment.