|
@@ 140-146 (lines=7) @@
|
| 137 |
|
* @param ResponseInterface $response |
| 138 |
|
* @return ResponseInterface |
| 139 |
|
*/ |
| 140 |
|
protected function postCommand(CommandInterface $command, ResponseInterface $response) |
| 141 |
|
{ |
| 142 |
|
$event = new Event\PostCommandEvent($command, $response); |
| 143 |
|
$this->eventDispatcher->dispatch(Event\Events::POST_COMMAND, $event); |
| 144 |
|
|
| 145 |
|
return $event->getResponse(); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
/** |
| 149 |
|
* |
|
@@ 172-180 (lines=9) @@
|
| 169 |
|
* @param ResponseInterface $response |
| 170 |
|
* @return ResponseInterface |
| 171 |
|
*/ |
| 172 |
|
protected function terminate(CommandInterface $command, ResponseInterface $response) |
| 173 |
|
{ |
| 174 |
|
$event = new Event\TerminateEvent($command, $response); |
| 175 |
|
$this->eventDispatcher->dispatch(Event\Events::TERMINATE, $event); |
| 176 |
|
|
| 177 |
|
$this->commandStack->pop(); |
| 178 |
|
|
| 179 |
|
return $event->getResponse(); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
/** |
| 183 |
|
* |