Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class OdiseoSyliusReportPlugin extends AbstractResourceBundle |
||
19 | { |
||
20 | use SyliusPluginTrait; |
||
21 | |||
22 | protected $mappingFormat = ResourceBundleInterface::MAPPING_YAML; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function getSupportedDrivers(): array |
||
28 | { |
||
29 | return [ |
||
30 | SyliusResourceBundle::DRIVER_DOCTRINE_ORM, |
||
31 | ]; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function build(ContainerBuilder $container): void |
||
38 | { |
||
39 | parent::build($container); |
||
40 | |||
41 | $container->addCompilerPass(new RegisterDataFetchersPass()); |
||
42 | $container->addCompilerPass(new RegisterRenderersPass()); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | protected function getModelNamespace(): ?string |
||
51 | } |
||
52 | } |
||
53 |