Passed
Pull Request — 8.x-2.x (#26)
by Frédéric G.
02:49
created

EventTemplateStorage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Drupal\mongodb_watchdog\Model;
4
5
use Doctrine\Common\Util\Debug;
6
use Drupal\Core\Cache\CacheBackendInterface;
7
use Drupal\Core\Entity\ContentEntityTypeInterface;
8
use Drupal\Core\Entity\EntityManagerInterface;
9
use Drupal\mongodb_storage\Model\ContentEntityStorageBase;
10
11
class EventTemplateStorage extends ContentEntityStorageBase {
12
  public function __construct(ContentEntityTypeInterface $entityType,
13
    EntityManagerInterface $entityManager,
14
    CacheBackendInterface $cacheBackend) {
15
    $databaseFactory = \Drupal::service('mongodb.database_factory');
16
    parent::__construct($entityType, $entityManager, $cacheBackend, $databaseFactory);
17
  }
18
19
  public function __call($name, array $args) {
20
    Debug::dump($name, $args);
21
    return call_user_func_array(parent::$name, $args);
22
  }
23
}
24