Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function loadRoutes() |
||
|
|||
26 | { |
||
27 | if ($this->enableCustomLogin) { |
||
28 | return new RouteCollection(); |
||
29 | } |
||
30 | |||
31 | $fileLocator = new FileLocator([__DIR__.'/../../Resources/config']); |
||
32 | $loaderResolver = new LoaderResolver([new XmlFileLoader($fileLocator)]); |
||
33 | $delegatingLoader = new DelegatingLoader($loaderResolver); |
||
34 | |||
35 | return $delegatingLoader->load('routing_fos.xml'); |
||
36 | } |
||
37 | } |
||
38 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.