Skip to content

Commit

Permalink
Switch from Drupal\Component\Uuid\Php to Drupal\Component\Uuid\UuidIn…
Browse files Browse the repository at this point in the history
…terface (#4065)
  • Loading branch information
janette authored Nov 30, 2023
1 parent afa9734 commit 2b7c0c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class DictionaryEnforcerTest extends BrowserTestBase {
/**
* Uuid service.
*
* @var \Drupal\Component\Uuid\Php
* @var \Drupal\Component\Uuid\UuidInterface
*/
protected $uuid;

Expand Down
8 changes: 4 additions & 4 deletions modules/json_form_widget/src/WidgetRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Drupal\json_form_widget;

use Drupal\Component\Uuid\Php;
use Drupal\Component\Uuid\UuidInterface;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\metastore\MetastoreService;
Expand All @@ -16,7 +16,7 @@ class WidgetRouter implements ContainerInjectionInterface {
/**
* Uuid Service.
*
* @var \Drupal\Component\Uuid\Php
* @var \Drupal\Component\Uuid\UuidInterface
*/
protected $uuidService;

Expand Down Expand Up @@ -50,14 +50,14 @@ public static function create(ContainerInterface $container) {
/**
* Constructor.
*
* @param \Drupal\Component\Uuid\Php $uuid
* @param \Drupal\Component\Uuid\UuidInterface $uuid
* Uuid service.
* @param \Drupal\json_form_widget\StringHelper $string_helper
* String Helper service.
* @param \Drupal\metastore\MetastoreService $metastore
* Metastore service.
*/
public function __construct(Php $uuid, StringHelper $string_helper, MetastoreService $metastore) {
public function __construct(UuidInterface $uuid, StringHelper $string_helper, MetastoreService $metastore) {
$this->uuidService = $uuid;
$this->stringHelper = $string_helper;
$this->metastore = $metastore;
Expand Down

0 comments on commit 2b7c0c8

Please sign in to comment.