Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function load($resource, ?string $type = null): RouteCollection |
||
19 | { |
||
20 | $routeCollection = new RouteCollection(); |
||
21 | if (true === $this->configuration['enabled_viewer']) { |
||
22 | $routeCollection = $this->annotationLoader->load('DH\DoctrineAuditBundle\Controller\AuditController'); |
||
23 | } |
||
24 | |||
25 | return $routeCollection; |
||
26 | } |
||
43 |