소스 검색

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 {
 
-  /**
-   * Drupal\Core\Database\Driver\mysql\Connection definition.
-   *
-   * @var Drupal\Core\Database\Driver\mysql\Connection
-   */
-  protected $database;
 
   /**
    * Drupal\Core\Entity\EntityTypeManager definition.
@@ -45,8 +39,7 @@ class StatusService {
   /**
    * 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_query = $entity_query;
     $this->flag = $flag;

+ 1 - 1
statusmessage.services.yml

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