Skip to content

Commit 3575884

Browse files
committed
[TASK] Simplify fully qualified class names
1 parent ebb3dc8 commit 3575884

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function getIndex() {
135135
* @param Node $node
136136
* @param string $targetWorkspaceName In case this is triggered during publishing, a workspace name will be passed in
137137
* @return void
138-
* @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception\IndexingException
138+
* @throws \TYPO3\TYPO3CR\Search\Exception\IndexingException
139139
*/
140140
public function indexNode(Node $node, $targetWorkspaceName = NULL) {
141141
$contextPath = $node->getContextPath();
@@ -383,25 +383,25 @@ public function flush() {
383383
* Update the index alias
384384
*
385385
* @return void
386-
* @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception
386+
* @throws Exception
387387
* @throws \Flowpack\ElasticSearch\Transfer\Exception\ApiException
388388
* @throws \Exception
389389
*/
390390
public function updateIndexAlias() {
391391
$aliasName = $this->searchClient->getIndexName(); // The alias name is the unprefixed index name
392392
if ($this->getIndexName() === $aliasName) {
393-
throw new \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception('UpdateIndexAlias is only allowed to be called when $this->setIndexNamePostfix has been created.', 1383649061);
393+
throw new Exception('UpdateIndexAlias is only allowed to be called when $this->setIndexNamePostfix has been created.', 1383649061);
394394
}
395395

396396
if (!$this->getIndex()->exists()) {
397-
throw new \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception('The target index for updateIndexAlias does not exist. This shall never happen.', 1383649125);
397+
throw new Exception('The target index for updateIndexAlias does not exist. This shall never happen.', 1383649125);
398398
}
399399

400400
$aliasActions = array();
401401
try {
402402
$response = $this->searchClient->request('GET', '/*/_alias/' . $aliasName);
403403
if ($response->getStatusCode() !== 200) {
404-
throw new \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception('The alias "' . $aliasName . '" was not found with some unexpected error... (return code: ' . $response->getStatusCode() . ')', 1383650137);
404+
throw new Exception('The alias "' . $aliasName . '" was not found with some unexpected error... (return code: ' . $response->getStatusCode() . ')', 1383650137);
405405
}
406406

407407
$indexNames = array_keys($response->getTreatedContent());
@@ -412,7 +412,7 @@ public function updateIndexAlias() {
412412
if ($response->getStatusCode() === 200) {
413413
$response = $this->searchClient->request('DELETE', '/' . $aliasName);
414414
if ($response->getStatusCode() !== 200) {
415-
throw new \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception('The index "' . $aliasName . '" could not be removed to be replaced by an alias. (return code: ' . $response->getStatusCode() . ')', 1395419177);
415+
throw new Exception('The index "' . $aliasName . '" could not be removed to be replaced by an alias. (return code: ' . $response->getStatusCode() . ')', 1395419177);
416416
}
417417
}
418418
} else {

0 commit comments

Comments
 (0)