Commit 9afe9814 authored by gbyte.co's avatar gbyte.co Committed by gbyte.co

Issue #3084261 by idebr, gbyte.co: \Drupal\simple_sitemap\EntityHelper has...

Issue #3084261 by idebr, gbyte.co: \Drupal\simple_sitemap\EntityHelper has unused dependency on Connection
parent 87b85122
......@@ -57,7 +57,6 @@ services:
public: true
arguments:
- '@entity_type.manager'
- '@database'
- '@entity_type.bundle.info'
simple_sitemap.form_helper:
......
......@@ -7,7 +7,6 @@ use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Database\Connection;
use Drupal\Core\Url;
/**
......@@ -24,13 +23,6 @@ class EntityHelper {
*/
protected $entityTypeManager;
/**
* The current active database's master connection.
*
* @var \Drupal\Core\Database\Connection
*/
protected $db;
/**
* @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface
*/
......@@ -39,12 +31,10 @@ class EntityHelper {
/**
* EntityHelper constructor.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* @param \Drupal\Core\Database\Connection $database
* @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info
*/
public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $database, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
$this->entityTypeManager = $entity_type_manager;
$this->db = $database;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment