Skip to content

Commit

Permalink
OXDEV-7961: Some small method renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed Mar 21, 2024
1 parent 92bbc6c commit 08caa29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG-v8.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Order of DataType-methods for alphabetic order in schema
- Set DebugFlag for error output to default
- extract logging error formatter to new method
- extract save of module signature from `OxidEsales\GraphQL\Base\Infrastructure\ModuleSetup` to `OxidEsales\GraphQL\Base\Service\ModuleConfiguration`
- extract generation and save of module signature from `OxidEsales\GraphQL\Base\Infrastructure\ModuleSetup` to `OxidEsales\GraphQL\Base\Service\ModuleConfiguration`

### Added
- Workflow trigger to update schema in documentation
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/GraphQLQueryHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function executeGraphQLQuery(): void
$result = $this->executeQuery(
$this->requestReader->getGraphQLRequestData()
);
$result->setErrorFormatter($this->getErrors());
$result->setErrorFormatter($this->getErrorFormatter());
$this->responseWriter->renderJsonResponse(
$result->toArray()
);
Expand Down Expand Up @@ -110,7 +110,7 @@ public static function addError(Error $e): void
self::$errors[] = $e;
}

private function getErrors(): \Closure
private function getErrorFormatter(): \Closure
{
return function (Error $error) {
$this->logger->error($error->getMessage(), [$error]);
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/ModuleSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(

public function runSetup(): void
{
$this->moduleConfiguration->saveSignatureKey();
$this->moduleConfiguration->generateAndSaveSignatureKey();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ModuleConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getSignatureKey(): string
return $signature;
}

public function saveSignatureKey(): void
public function generateAndSaveSignatureKey(): void
{
$this->moduleSettingService->saveString(
static::SIGNATUREKEYNAME,
Expand Down

0 comments on commit 08caa29

Please sign in to comment.