| 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) |
||
| 27 | { |
||
| 28 | if (true === $this->isLoaded) { |
||
| 29 | return null; |
||
| 30 | } |
||
| 31 | |||
| 32 | $routes = new RouteCollection(); |
||
| 33 | |||
| 34 | $resource = '@Sf4ApiBundle/Resources/config/routing.yaml'; |
||
| 35 | $type = 'yaml'; |
||
| 36 | |||
| 37 | $importedRoutes = $this->import($resource, $type); |
||
| 38 | $routes->addCollection($importedRoutes); |
||
| 39 | |||
| 40 | $this->isLoaded = true; |
||
| 41 | |||
| 42 | return $routes; |
||
| 43 | } |
||
| 55 |