Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
13 | public function load($resource, $type = null) |
||
14 | { |
||
15 | $collection = new MethodCollection(); |
||
16 | $root = $this->getContainer()->getParameter('kernel.root_dir'); |
||
17 | $resource = $root . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'rpc_routing.yml'; |
||
18 | $type = 'yaml'; |
||
19 | $importedRouters = $this->import($resource, $type); |
||
20 | $collection->addCollection($importedRouters); |
||
21 | |||
22 | return $collection; |
||
23 | } |
||
24 | |||
34 | } |