浏览代码

Removing unnecessary service which called conflicts between MySQL and Postgres

logicp 7 年之前
父节点
当前提交
3a4ce7ae20
共有 2 个文件被更改,包括 2 次插入9 次删除
  1. 1 8
      src/StatusService.php
  2. 1 1
      statusmessage.services.yml

+ 1 - 8
src/StatusService.php

@@ -15,12 +15,6 @@ use Drupal\flag\FlagService;
  */
  */
 class StatusService {
 class StatusService {
 
 
-  /**
-   * Drupal\Core\Database\Driver\mysql\Connection definition.
-   *
-   * @var Drupal\Core\Database\Driver\mysql\Connection
-   */
-  protected $database;
 
 
   /**
   /**
    * Drupal\Core\Entity\EntityTypeManager definition.
    * Drupal\Core\Entity\EntityTypeManager definition.
@@ -45,8 +39,7 @@ class StatusService {
   /**
   /**
    * Constructor.
    * Constructor.
    */
    */
-  public function __construct(Connection $database, EntityTypeManager $entity_type_manager, QueryFactory $entity_query, FlagService $flag) {
-    $this->database = $database;
+  public function __construct(EntityTypeManager $entity_type_manager, QueryFactory $entity_query, FlagService $flag) {
     $this->entity_type_manager = $entity_type_manager;
     $this->entity_type_manager = $entity_type_manager;
     $this->entity_query = $entity_query;
     $this->entity_query = $entity_query;
     $this->flag = $flag;
     $this->flag = $flag;

+ 1 - 1
statusmessage.services.yml

@@ -1,7 +1,7 @@
 services:
 services:
   statusservice:
   statusservice:
     class: Drupal\statusmessage\StatusService
     class: Drupal\statusmessage\StatusService
-    arguments: ["@database", "@entity_type.manager", "@entity.query", "@flag"]
+    arguments: ["@entity_type.manager", "@entity.query", "@flag"]
 
 
   status_type_service:
   status_type_service:
     class: Drupal\statusmessage\StatusTypeService
     class: Drupal\statusmessage\StatusTypeService