From 460f6cfbe0403fb10b4438089ea588bd3389bada Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 23 Jun 2025 21:17:10 +0100 Subject: [PATCH] Refactor --- modules/opd_presentations/opd_presentations.services.yml | 2 +- .../src/{ => Action}/CountGivenPresentations.php | 3 ++- .../Functional/{ => Action}/CountGivenPresentationsTest.php | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) rename modules/opd_presentations/src/{ => Action}/CountGivenPresentations.php (86%) rename modules/opd_presentations/tests/src/Functional/{ => Action}/CountGivenPresentationsTest.php (94%) diff --git a/modules/opd_presentations/opd_presentations.services.yml b/modules/opd_presentations/opd_presentations.services.yml index d2528f660..6f3c91500 100644 --- a/modules/opd_presentations/opd_presentations.services.yml +++ b/modules/opd_presentations/opd_presentations.services.yml @@ -1,5 +1,5 @@ services: - Drupal\opd_presentations\CountGivenPresentations: + Drupal\opd_presentations\Action\CountGivenPresentations: autowire: true Drupal\opd_presentations\Repository\PresentationNodeRepository: autowire: true diff --git a/modules/opd_presentations/src/CountGivenPresentations.php b/modules/opd_presentations/src/Action/CountGivenPresentations.php similarity index 86% rename from modules/opd_presentations/src/CountGivenPresentations.php rename to modules/opd_presentations/src/Action/CountGivenPresentations.php index 9b47a4445..1c3b14257 100644 --- a/modules/opd_presentations/src/CountGivenPresentations.php +++ b/modules/opd_presentations/src/Action/CountGivenPresentations.php @@ -2,8 +2,9 @@ declare(strict_types=1); -namespace Drupal\opd_presentations; +namespace Drupal\opd_presentations\Action; +use Drupal\opd_presentations\Presentation; use Drupal\opd_presentations\Repository\PresentationRepositoryInterface; final class CountGivenPresentations { diff --git a/modules/opd_presentations/tests/src/Functional/CountGivenPresentationsTest.php b/modules/opd_presentations/tests/src/Functional/Action/CountGivenPresentationsTest.php similarity index 94% rename from modules/opd_presentations/tests/src/Functional/CountGivenPresentationsTest.php rename to modules/opd_presentations/tests/src/Functional/Action/CountGivenPresentationsTest.php index 116c55724..8e2814136 100644 --- a/modules/opd_presentations/tests/src/Functional/CountGivenPresentationsTest.php +++ b/modules/opd_presentations/tests/src/Functional/Action/CountGivenPresentationsTest.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Drupal\Tests\opd_presentations; +namespace Drupal\Tests\opd_presentations\Action; use Drupal\Tests\RandomGeneratorTrait; use Drupal\Tests\opd_presentations\Traits\PresentationCreationTrait; -use Drupal\opd_presentations\CountGivenPresentations; +use Drupal\opd_presentations\Action\CountGivenPresentations; use Drupal\opd_presentations\Events; use weitzman\DrupalTestTraits\ExistingSiteBase;