@@ 58-70 (lines=13) @@ | ||
55 | * |
|
56 | * @throws OutOfBoundsException |
|
57 | */ |
|
58 | public function getExecutor($action) |
|
59 | { |
|
60 | if (!$this->hasExecutor($action)) { |
|
61 | throw new OutOfBoundsException( |
|
62 | sprintf( |
|
63 | 'There is no executor registered for action "%s".', |
|
64 | $action |
|
65 | ) |
|
66 | ); |
|
67 | } |
|
68 | ||
69 | return $this->executors[$action]; |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * @return ExecutorInterface[] |
@@ 149-159 (lines=11) @@ | ||
146 | * |
|
147 | * @return ExecutorInterface |
|
148 | */ |
|
149 | public function getExecutor($action) |
|
150 | { |
|
151 | if (!$this->hasExecutor($action)) { |
|
152 | throw new \OutOfBoundsException(sprintf( |
|
153 | 'There is no executor registered for action "%s".', |
|
154 | $action |
|
155 | )); |
|
156 | } |
|
157 | ||
158 | return $this->executors[$action]; |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * @return array<string, ExecutorInterface> |