Skip to content

Commit f4bd44b

Browse files
committed
Some extra cleanup
1 parent f1738c8 commit f4bd44b

File tree

5 files changed

+3
-15
lines changed

5 files changed

+3
-15
lines changed

doc/domain_schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Another, `AddDomainContentToDomainGroup`, will add the same Domain Content to it
104104

105105
### Custom Field Types
106106

107-
Fields values are handled by the `AddFieldValueToDomainContent` content domain schema worker. It uses Field Value Builders (instances of `Schema\Domain\Content\FieldValueBuilder\FieldValueBuilder`) to generate the type and resolution for each field.
107+
Fields values are handled by the `AddFieldValueToItem` content domain schema worker. It uses Field Value Builders (instances of `Schema\Domain\Content\FieldValueBuilder\FieldValueBuilder`) to generate the type and resolution for each field.
108108

109109
Basic field types are handled by the `BaseFieldValueBuilder`. It maps each fieldtype, using its identifier, to either a type, or a type and a resolver. For the time being, it can not be customized.
110110

doc/howto/custom_field_type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class RelationFieldDefinitionMapper extends DecoratingFieldDefinitionMapper impl
124124

125125
if (count($settings['selectionContentTypes']) === 1) {
126126
$contentType = $this->contentTypeService->loadContentTypeByIdentifier($settings['selectionContentTypes'][0]);
127-
$type = $this->nameHelper->domainContentName($contentType);
127+
$type = $this->nameHelper->itemName($contentType);
128128
} else {
129129
$type = 'DomainContent';
130130
}

src/bundle/Resources/config/services/resolvers.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ services:
3232
Ibexa\GraphQL\Resolver\DomainContentResolver:
3333
tags:
3434
- { name: overblog_graphql.resolver, alias: "DomainContentItemsByTypeIdentifier", method: "resolveDomainContentItems" }
35-
- { name: overblog_graphql.resolver, alias: "DomainFieldValue", method: "resolveDomainFieldValue" }
3635
- { name: overblog_graphql.resolver, alias: "DomainContentType", method: "resolveDomainContentType" }
3736
- { name: overblog_graphql.resolver, alias: "DomainContentItem", method: "resolveDomainContentItem" }
3837
- { name: overblog_graphql.resolver, alias: "DomainRelationFieldValue", method: "resolveDomainRelationFieldValue" }
@@ -118,7 +117,6 @@ services:
118117
tags:
119118
- { name: overblog_graphql.resolver, alias: "SearchContent", method: "searchContent" }
120119
- { name: overblog_graphql.resolver, alias: "SearchContentOfTypeAsConnection", method: "searchContentOfTypeAsConnection" }
121-
- { name: overblog_graphql.resolver, alias: "SearchLocationsOfTypeAsConnection", method: "searchLocationsOfTypeAsConnection" }
122120
arguments:
123121
$searchService: '@ibexa.siteaccessaware.service.search'
124122

src/bundle/Resources/config/services/schema.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ services:
4949
arguments:
5050
$innerMapper: '@Ibexa\GraphQL\Schema\Domain\Content\Mapper\FieldDefinition\SelectionFieldDefinitionMapper.inner'
5151

52-
Ibexa\GraphQL\Schema\Domain\Content\Worker\FieldDefinition\AddFieldValueToDomainContent: ~
53-
5452
Ibexa\GraphQL\Schema\Domain\Content\Worker\ContentType\AddItemOfTypeConnectionToGroup: ~
5553

5654
Ibexa\GraphQL\Schema\Domain\Content\Worker\ContentType\AddItemToGroup: ~
@@ -100,8 +98,6 @@ services:
10098

10199
Ibexa\GraphQL\Schema\Generator: ~
102100

103-
Ibexa\GraphQL\Schema\ImagesVariationsBuilder: ~
104-
105101
Ibexa\GraphQL\Schema\SchemaGenerator: ~
106102

107103
Ibexa\GraphQL\Schema\Domain\Pluralizer: ~

src/lib/Resolver/SearchResolver.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
*/
1818
class SearchResolver
1919
{
20-
/**
21-
* @var \Ibexa\Contracts\Core\Repository\SearchService
22-
*/
23-
private $searchService;
24-
2520
/**
2621
* @var \Ibexa\GraphQL\InputMapper\SearchQueryMapper
2722
*/
@@ -32,10 +27,9 @@ class SearchResolver
3227
*/
3328
private $contentLoader;
3429

35-
public function __construct(ContentLoader $contentLoader, SearchService $searchService, SearchQueryMapper $queryMapper)
30+
public function __construct(ContentLoader $contentLoader, SearchQueryMapper $queryMapper)
3631
{
3732
$this->contentLoader = $contentLoader;
38-
$this->searchService = $searchService;
3933
$this->queryMapper = $queryMapper;
4034
}
4135

0 commit comments

Comments
 (0)