| Total Complexity | 3 | 
| Total Lines | 25 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 11 | class RoutingAnnotationLoader extends Loader implements LoaderInterface  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * @var AnnotatedRouteControllerLoader  | 
            ||
| 15 | */  | 
            ||
| 16 | private $annotationLoader;  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * @var array  | 
            ||
| 20 | */  | 
            ||
| 21 | private $configuration;  | 
            ||
| 22 | |||
| 23 | public function load($resource, ?string $type = null): RouteCollection  | 
            ||
| 24 |     { | 
            ||
| 25 | $routeCollection = new RouteCollection();  | 
            ||
| 26 |         if (true === $this->configuration['enabled_viewer']) { | 
            ||
| 27 | $routeCollection = $this->annotationLoader->load(ViewerController::class);  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | return $routeCollection;  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 | public function supports($resource, ?string $type = null): bool  | 
            ||
| 36 | }  | 
            ||
| 37 | }  | 
            ||
| 38 |