| @@ 61-67 (lines=7) @@ | ||
| 58 | ||
| 59 | $event->setContext($context); |
|
| 60 | ||
| 61 | if (isset($this->dispatcher)) { |
|
| 62 | $this->dispatcher->dispatch(SMEvents::TEST_TRANSITION, $event); |
|
| 63 | ||
| 64 | if ($event->isRejected()) { |
|
| 65 | return false; |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||
| 69 | return $this->callCallbacks($event, 'guard'); |
|
| 70 | } |
|
| @@ 95-101 (lines=7) @@ | ||
| 92 | ||
| 93 | $event->setContext($context); |
|
| 94 | ||
| 95 | if (isset($this->dispatcher)) { |
|
| 96 | $this->dispatcher->dispatch(SMEvents::PRE_TRANSITION, $event); |
|
| 97 | ||
| 98 | if ($event->isRejected()) { |
|
| 99 | return false; |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| 103 | $this->callCallbacks($event, 'before'); |
|
| 104 | ||