Skip to content

Commit

Permalink
Renamed RelationListFacade to RelationListFacadeInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Nov 4, 2024
1 parent 3af7694 commit 058b362
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/bundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ services:
- '@ibexa.api.service.section'
- '@ibexa.api.repository'
- '@Ibexa\Contracts\Core\Repository\PermissionResolver'
- '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade'
- '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface'
tags: [controller.service_arguments]

Ibexa\Rest\Server\Controller\URLWildcard:
Expand Down
8 changes: 4 additions & 4 deletions src/bundle/Resources/config/value_object_visitors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ services:
parent: Ibexa\Contracts\Rest\Output\ValueObjectVisitor
class: Ibexa\Rest\Server\Output\ValueObjectVisitor\UserGroup
arguments:
$relationListFacade: '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade'
$relationListFacade: '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface'
tags:
- { name: ibexa.rest.output.value_object.visitor, type: Ibexa\Contracts\Core\Repository\Values\User\UserGroup }

Expand Down Expand Up @@ -272,7 +272,7 @@ services:
parent: Ibexa\Contracts\Rest\Output\ValueObjectVisitor
class: Ibexa\Rest\Server\Output\ValueObjectVisitor\User
arguments:
$relationListFacade: '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade'
$relationListFacade: '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface'
tags:
- { name: ibexa.rest.output.value_object.visitor, type: Ibexa\Contracts\Core\Repository\Values\User\User }

Expand Down Expand Up @@ -477,7 +477,7 @@ services:
- { name: ibexa.rest.output.value_object.visitor, type: Ibexa\Contracts\Core\Repository\Values\Content\Location }
arguments:
$locationService: '@ibexa.api.service.location'
$relationListFacade: '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade'
$relationListFacade: '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface'

Ibexa\Rest\Server\Output\ValueObjectVisitor\LocationList:
parent: Ibexa\Contracts\Rest\Output\ValueObjectVisitor
Expand All @@ -504,7 +504,7 @@ services:
class: Ibexa\Rest\Server\Output\ValueObjectVisitor\RestExecutedView
arguments:
- '@ibexa.api.service.location'
- '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade'
- '@Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface'
tags:
- { name: ibexa.rest.output.value_object.visitor, type: Ibexa\Rest\Server\Values\RestExecutedView }

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Server/Controller/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Content extends RestController
{
public function __construct(
private readonly ContentService $contentService,
private readonly ContentService\RelationListFacade $relationListFacade
private readonly ContentService\RelationListFacadeInterface $relationListFacade
) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Server/Controller/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ final class User extends RestController

private PermissionResolver $permissionResolver;

private ContentService\RelationListFacade $relationListFacade;
private ContentService\RelationListFacadeInterface $relationListFacade;

public function __construct(
UserService $userService,
Expand All @@ -73,7 +73,7 @@ public function __construct(
SectionService $sectionService,
Repository $repository,
PermissionResolver $permissionResolver,
ContentService\RelationListFacade $relationListFacade
ContentService\RelationListFacadeInterface $relationListFacade
) {
$this->userService = $userService;
$this->roleService = $roleService;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Server/Output/ValueObjectVisitor/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Ibexa\Rest\Server\Output\ValueObjectVisitor;

use Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade;
use Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface;
use Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException;
use Ibexa\Contracts\Core\Repository\LocationService;
use Ibexa\Contracts\Core\Repository\Values\Content;
Expand All @@ -23,7 +23,7 @@ class Location extends ValueObjectVisitor
{
public function __construct(
private readonly LocationService $locationService,
private readonly RelationListFacade $relationListFacade
private readonly RelationListFacadeInterface $relationListFacade
) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Server/Output/ValueObjectVisitor/RestExecutedView.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Ibexa\Rest\Server\Output\ValueObjectVisitor;

use Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade;
use Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface;
use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException;
use Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException;
use Ibexa\Contracts\Core\Repository\LocationService;
Expand All @@ -25,7 +25,7 @@ class RestExecutedView extends ValueObjectVisitor
{
public function __construct(
private readonly LocationService $locationService,
private readonly RelationListFacade $relationListFacade
private readonly RelationListFacadeInterface $relationListFacade
) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Server/Output/ValueObjectVisitor/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Ibexa\Rest\Server\Output\ValueObjectVisitor;

use Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade;
use Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface;
use Ibexa\Contracts\Rest\Output\Generator;
use Ibexa\Contracts\Rest\Output\ValueObjectVisitor;
use Ibexa\Contracts\Rest\Output\Visitor;
Expand All @@ -17,7 +17,7 @@

final class User extends ValueObjectVisitor implements DelegateValueObjectVisitor
{
public function __construct(private readonly RelationListFacade $relationListFacade)
public function __construct(private readonly RelationListFacadeInterface $relationListFacade)
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Server/Output/ValueObjectVisitor/UserGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Ibexa\Rest\Server\Output\ValueObjectVisitor;

use Ibexa\Contracts\Core\Repository\ContentService\RelationListFacade;
use Ibexa\Contracts\Core\Repository\ContentService\RelationListFacadeInterface;
use Ibexa\Contracts\Rest\Output\Generator;
use Ibexa\Contracts\Rest\Output\ValueObjectVisitor;
use Ibexa\Contracts\Rest\Output\Visitor;
Expand All @@ -18,7 +18,7 @@
final class UserGroup extends ValueObjectVisitor implements DelegateValueObjectVisitor
{
public function __construct(
private readonly RelationListFacade $relationListFacade
private readonly RelationListFacadeInterface $relationListFacade
) {
}

Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Server/Output/ValueObjectVisitor/LocationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ final class LocationTest extends ValueObjectVisitorBaseTest

private LocationService&MockObject $locationServiceMock;

private ContentService\RelationListFacade&MockObject $relationListFacade;
private ContentService\RelationListFacadeInterface&MockObject $relationListFacade;

protected function setUp(): void
{
$this->locationServiceMock = $this->createMock(LocationService::class);
$this->relationListFacade = $this->createMock(ContentService\RelationListFacade::class);
$this->relationListFacade = $this->createMock(ContentService\RelationListFacadeInterface::class);

parent::setUp();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public function getLocationServiceMock()
return $this->createMock(LocationService::class);
}

private function getRelationListFacadeMock(): ContentService\RelationListFacade&MockObject
private function getRelationListFacadeMock(): ContentService\RelationListFacadeInterface&MockObject
{
$relationListFacade = $this->createMock(ContentService\RelationListFacade::class);
$relationListFacade = $this->createMock(ContentService\RelationListFacadeInterface::class);
$relationListFacade->method('getRelations')->willReturnCallback(
static fn () => yield
);
Expand Down

0 comments on commit 058b362

Please sign in to comment.