From a226602a26552bd40f5d0bcf131800c90e4da3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Sat, 30 Nov 2024 10:42:59 +0100 Subject: [PATCH] Generated baseline and fixed some usages --- .../api/commerce/src/Command/CartCommand.php | 2 +- .../src/Command/MigrationCommand.php | 2 +- .../src/Command/SegmentCommand.php | 6 +- .../Calendar/Holidays/EventSourceFactory.php | 2 +- .../src/Calendar/Holidays/EventType.php | 2 +- .../images/src/PlaceholderProvider.php | 18 -- .../Limitation/CustomLimitationType.php | 2 +- deptrac.baseline.yaml | 185 ++++++++++++++++++ docs/content_management/images/images.md | 6 +- phpstan-baseline.neon | 7 +- 10 files changed, 195 insertions(+), 37 deletions(-) delete mode 100644 code_samples/back_office/images/src/PlaceholderProvider.php create mode 100644 deptrac.baseline.yaml diff --git a/code_samples/api/commerce/src/Command/CartCommand.php b/code_samples/api/commerce/src/Command/CartCommand.php index 102440bc9bc..c29d9904300 100644 --- a/code_samples/api/commerce/src/Command/CartCommand.php +++ b/code_samples/api/commerce/src/Command/CartCommand.php @@ -12,11 +12,11 @@ use Ibexa\Contracts\Cart\Value\EntryAddStruct; use Ibexa\Contracts\Cart\Value\EntryUpdateStruct; use Ibexa\Contracts\Checkout\Reorder\ReorderService; +use Ibexa\Contracts\Core\Repository\PermissionResolver; use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\OrderManagement\OrderServiceInterface; use Ibexa\Contracts\ProductCatalog\CurrencyServiceInterface; use Ibexa\Contracts\ProductCatalog\ProductServiceInterface; -use Ibexa\Core\Repository\Permission\PermissionResolver; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; diff --git a/code_samples/api/migration/src/Command/MigrationCommand.php b/code_samples/api/migration/src/Command/MigrationCommand.php index 848f54742ac..f2a224cd579 100644 --- a/code_samples/api/migration/src/Command/MigrationCommand.php +++ b/code_samples/api/migration/src/Command/MigrationCommand.php @@ -2,7 +2,7 @@ namespace App\Command; -use Ibexa\Migration\MigrationService; +use Ibexa\Contracts\Migration\MigrationService; use Ibexa\Migration\Repository\Migration; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; diff --git a/code_samples/api/public_php_api/src/Command/SegmentCommand.php b/code_samples/api/public_php_api/src/Command/SegmentCommand.php index 88cc31c1b23..dcec19f91e7 100644 --- a/code_samples/api/public_php_api/src/Command/SegmentCommand.php +++ b/code_samples/api/public_php_api/src/Command/SegmentCommand.php @@ -4,7 +4,7 @@ use Ibexa\Contracts\Core\Repository\PermissionResolver; use Ibexa\Contracts\Core\Repository\UserService; -use Ibexa\Segmentation\Service\SegmentationService; +use Ibexa\Contracts\Segmentation\SegmentationServiceInterface; use Ibexa\Segmentation\Value\SegmentCreateStruct; use Ibexa\Segmentation\Value\SegmentGroupCreateStruct; use Symfony\Component\Console\Command\Command; @@ -13,13 +13,13 @@ class SegmentCommand extends Command { - private SegmentationService $segmentationService; + private SegmentationServiceInterface $segmentationService; private UserService $userService; private PermissionResolver $permissionResolver; - public function __construct(SegmentationService $segmentationService, UserService $userService, PermissionResolver $permissionResolver) + public function __construct(SegmentationServiceInterface $segmentationService, UserService $userService, PermissionResolver $permissionResolver) { $this->segmentationService = $segmentationService; $this->permissionResolver = $permissionResolver; diff --git a/code_samples/back_office/calendar/src/Calendar/Holidays/EventSourceFactory.php b/code_samples/back_office/calendar/src/Calendar/Holidays/EventSourceFactory.php index b6136ff6ddc..cd20af912fd 100644 --- a/code_samples/back_office/calendar/src/Calendar/Holidays/EventSourceFactory.php +++ b/code_samples/back_office/calendar/src/Calendar/Holidays/EventSourceFactory.php @@ -4,9 +4,9 @@ use DateTime; use DateTimeInterface; -use Ibexa\Calendar\EventSource\InMemoryEventSource; use Ibexa\Contracts\Calendar\EventCollection; use Ibexa\Contracts\Calendar\EventSource\EventSourceInterface; +use Ibexa\Contracts\Calendar\EventSource\InMemoryEventSource; class EventSourceFactory { diff --git a/code_samples/back_office/calendar/src/Calendar/Holidays/EventType.php b/code_samples/back_office/calendar/src/Calendar/Holidays/EventType.php index 12c03709800..8ffcb8d7f31 100644 --- a/code_samples/back_office/calendar/src/Calendar/Holidays/EventType.php +++ b/code_samples/back_office/calendar/src/Calendar/Holidays/EventType.php @@ -2,8 +2,8 @@ namespace App\Calendar\Holidays; -use Ibexa\Calendar\EventAction\EventActionCollection; use Ibexa\Contracts\Calendar\Event; +use Ibexa\Contracts\Calendar\EventAction\EventActionCollection; use Ibexa\Contracts\Calendar\EventType\EventTypeInterface; class EventType implements EventTypeInterface diff --git a/code_samples/back_office/images/src/PlaceholderProvider.php b/code_samples/back_office/images/src/PlaceholderProvider.php deleted file mode 100644 index 0d2024d3e33..00000000000 --- a/code_samples/back_office/images/src/PlaceholderProvider.php +++ /dev/null @@ -1,18 +0,0 @@ -