Completed
Pull Request — 8.x-3.x (#475)
by Sebastian
02:05
created

SchemaPluginManager::createInstance()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 6
nc 3
nop 2
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Drupal\graphql\Plugin\GraphQL;
4
5
use Drupal\Core\Extension\ModuleHandlerInterface;
6
use Drupal\Core\Plugin\DefaultPluginManager;
7
use Symfony\Component\DependencyInjection\ContainerInterface;
8
use Traversable;
9
10
class SchemaPluginManager extends DefaultPluginManager {
11
12
  /**
13
   * {@inheritdoc}
14
   */
15
  public function __construct(
16
    $pluginSubdirectory,
17
    Traversable $namespaces,
18
    ModuleHandlerInterface $moduleHandler,
19
    $pluginInterface,
20
    $pluginAnnotationName,
21
    $pluginType
22
  ) {
23
    $this->alterInfo($pluginType);
24
25
    parent::__construct(
26
      $pluginSubdirectory,
27
      $namespaces,
28
      $moduleHandler,
29
      $pluginInterface,
30
      $pluginAnnotationName
31
    );
32
  }
33
34
}
35