Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function load($resource, $type = null): ?RouteCollection |
||
27 | { |
||
28 | if (true === $this->isLoaded) { |
||
29 | return null; |
||
30 | } |
||
31 | |||
32 | $routes = new RouteCollection(); |
||
33 | |||
34 | $importedRoutes = $this->import( |
||
35 | '@Sf4ApiBundle/Resources/config/routing.yaml', |
||
36 | 'yaml' |
||
37 | ); |
||
38 | $routes->addCollection($importedRoutes); |
||
39 | |||
40 | $this->isLoaded = true; |
||
41 | |||
42 | return $routes; |
||
43 | } |
||
55 |