|
27 | 27 | use Neos\Flow\Annotations as Flow; |
28 | 28 | use Neos\Flow\Cli\CommandController; |
29 | 29 | use Neos\Flow\Configuration\ConfigurationManager; |
| 30 | +use Neos\Flow\Configuration\Exception\InvalidConfigurationTypeException; |
| 31 | +use Neos\Flow\Mvc\Exception\StopActionException; |
30 | 32 | use Neos\Flow\ObjectManagement\ObjectManagerInterface; |
31 | 33 | use Neos\Neos\Controller\CreateContentContextTrait; |
32 | 34 | use Symfony\Component\Yaml\Yaml; |
@@ -105,6 +107,7 @@ class NodeIndexCommandController extends CommandController |
105 | 107 | * Called by the Flow object framework after creating the object and resolving all dependencies. |
106 | 108 | * |
107 | 109 | * @param integer $cause Creation cause |
| 110 | + * @throws InvalidConfigurationTypeException |
108 | 111 | */ |
109 | 112 | public function initializeObject($cause) |
110 | 113 | { |
@@ -154,6 +157,7 @@ public function showMappingCommand() |
154 | 157 | * @param string $identifier |
155 | 158 | * @param string $workspace |
156 | 159 | * @return void |
| 160 | + * @throws StopActionException |
157 | 161 | */ |
158 | 162 | public function indexNodeCommand($identifier, $workspace = null) |
159 | 163 | { |
@@ -221,6 +225,7 @@ public function indexNodeCommand($identifier, $workspace = null) |
221 | 225 | * @param string $workspace name of the workspace which should be indexed |
222 | 226 | * @param string $postfix Index postfix, index with the same postfix will be deleted if exist |
223 | 227 | * @return void |
| 228 | + * @throws StopActionException |
224 | 229 | */ |
225 | 230 | public function buildCommand($limit = null, $update = false, $workspace = null, $postfix = null) |
226 | 231 | { |
@@ -312,7 +317,7 @@ public function cleanupCommand() |
312 | 317 | * @param string $postfix |
313 | 318 | * @return void |
314 | 319 | */ |
315 | | - protected function createNewIndex($postfix) |
| 320 | + protected function createNewIndex(string $postfix) |
316 | 321 | { |
317 | 322 | $this->nodeIndexer->setIndexNamePostfix($postfix ?: time()); |
318 | 323 | if ($this->nodeIndexer->getIndex()->exists() === true) { |
|
0 commit comments