From 509d5266612030bfa30fdb842597867abf88cd78 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 17 Dec 2020 23:25:59 +0000 Subject: [PATCH] Update the Collection namespace --- .../blog/src/Command/ExportBodyValuesForThemePurgingCommand.php | 2 +- web/modules/custom/blog/src/Entity/Node/Post.php | 2 +- web/modules/custom/blog/src/Repository/PostRepository.php | 2 +- .../blog/tests/modules/blog_test/src/Factory/PostFactory.php | 2 +- web/modules/custom/talks/src/Entity/Node/Talk.php | 2 +- .../talks/src/EventSubscriber/UpdateTalkNodeBeforeSave.php | 2 +- web/modules/custom/talks/src/Repository/TalkRepository.php | 2 +- web/modules/custom/talks/src/Service/TalkCounter.php | 2 +- web/modules/custom/talks/tests/src/Kernel/TalksPageSortTest.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/modules/custom/blog/src/Command/ExportBodyValuesForThemePurgingCommand.php b/web/modules/custom/blog/src/Command/ExportBodyValuesForThemePurgingCommand.php index 24da584..fea9a3d 100644 --- a/web/modules/custom/blog/src/Command/ExportBodyValuesForThemePurgingCommand.php +++ b/web/modules/custom/blog/src/Command/ExportBodyValuesForThemePurgingCommand.php @@ -5,7 +5,7 @@ declare(strict_types=1); namespace Drupal\opdavies_blog\Command; use Drupal\Core\Database\Connection; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; final class ExportBodyValuesForThemePurgingCommand { diff --git a/web/modules/custom/blog/src/Entity/Node/Post.php b/web/modules/custom/blog/src/Entity/Node/Post.php index 3ea094c..4250363 100644 --- a/web/modules/custom/blog/src/Entity/Node/Post.php +++ b/web/modules/custom/blog/src/Entity/Node/Post.php @@ -7,7 +7,7 @@ namespace Drupal\opdavies_blog\Entity\Node; use Drupal\discoverable_entity_bundle_classes\ContentEntityBundleInterface; use Drupal\node\Entity\Node; use Drupal\taxonomy\Entity\Term; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; /** * Defines an blog post node class. diff --git a/web/modules/custom/blog/src/Repository/PostRepository.php b/web/modules/custom/blog/src/Repository/PostRepository.php index a76f480..1b24f90 100644 --- a/web/modules/custom/blog/src/Repository/PostRepository.php +++ b/web/modules/custom/blog/src/Repository/PostRepository.php @@ -6,7 +6,7 @@ namespace Drupal\opdavies_blog\Repository; use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; final class PostRepository { diff --git a/web/modules/custom/blog/tests/modules/blog_test/src/Factory/PostFactory.php b/web/modules/custom/blog/tests/modules/blog_test/src/Factory/PostFactory.php index ce0df06..903a109 100644 --- a/web/modules/custom/blog/tests/modules/blog_test/src/Factory/PostFactory.php +++ b/web/modules/custom/blog/tests/modules/blog_test/src/Factory/PostFactory.php @@ -9,7 +9,7 @@ use Drupal\node\Entity\Node; use Drupal\opdavies_blog\Entity\Node\Post; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\TermInterface; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; final class PostFactory { diff --git a/web/modules/custom/talks/src/Entity/Node/Talk.php b/web/modules/custom/talks/src/Entity/Node/Talk.php index 195cc4a..7332d61 100644 --- a/web/modules/custom/talks/src/Entity/Node/Talk.php +++ b/web/modules/custom/talks/src/Entity/Node/Talk.php @@ -5,7 +5,7 @@ namespace Drupal\opdavies_talks\Entity\Node; use Drupal\discoverable_entity_bundle_classes\ContentEntityBundleInterface; use Drupal\node\Entity\Node; use Drupal\paragraphs\ParagraphInterface; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; /** * Defines an talk node class. diff --git a/web/modules/custom/talks/src/EventSubscriber/UpdateTalkNodeBeforeSave.php b/web/modules/custom/talks/src/EventSubscriber/UpdateTalkNodeBeforeSave.php index bcab73e..428418e 100644 --- a/web/modules/custom/talks/src/EventSubscriber/UpdateTalkNodeBeforeSave.php +++ b/web/modules/custom/talks/src/EventSubscriber/UpdateTalkNodeBeforeSave.php @@ -9,8 +9,8 @@ use Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\opdavies_talks\Entity\Node\Talk; use Drupal\paragraphs\ParagraphInterface; -use Illuminate\Support\Collection; use Symfony\Component\EventDispatcher\EventSubscriberInterface; +use Tightenco\Collect\Support\Collection; /** * Update a talk node before it's saved. diff --git a/web/modules/custom/talks/src/Repository/TalkRepository.php b/web/modules/custom/talks/src/Repository/TalkRepository.php index 3352fff..85add3b 100644 --- a/web/modules/custom/talks/src/Repository/TalkRepository.php +++ b/web/modules/custom/talks/src/Repository/TalkRepository.php @@ -7,7 +7,7 @@ namespace Drupal\opdavies_talks\Repository; use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\opdavies_talks\Entity\Node\Talk; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; final class TalkRepository { diff --git a/web/modules/custom/talks/src/Service/TalkCounter.php b/web/modules/custom/talks/src/Service/TalkCounter.php index 2159bdf..588e159 100644 --- a/web/modules/custom/talks/src/Service/TalkCounter.php +++ b/web/modules/custom/talks/src/Service/TalkCounter.php @@ -10,7 +10,7 @@ use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\node\NodeInterface; use Drupal\opdavies_talks\Entity\Node\Talk; use Drupal\paragraphs\ParagraphInterface; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; final class TalkCounter { diff --git a/web/modules/custom/talks/tests/src/Kernel/TalksPageSortTest.php b/web/modules/custom/talks/tests/src/Kernel/TalksPageSortTest.php index 43d3dd4..2dff6f9 100644 --- a/web/modules/custom/talks/tests/src/Kernel/TalksPageSortTest.php +++ b/web/modules/custom/talks/tests/src/Kernel/TalksPageSortTest.php @@ -6,7 +6,7 @@ namespace Drupal\Tests\opdavies_talks\Kernel; use Carbon\Carbon; use Drupal\views\ResultRow; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; final class TalksPageSortTest extends TalksTestBase {