Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function getLeftNavigationAction() |
||
11 | { |
||
12 | $navigation = json_decode(file_get_contents($this->em->get('kernel')->getRootDir() . "/../src/Ribs/RibsAdminBundle/Resources/json/navigation.json")); |
||
|
|||
13 | $menu = null; |
||
14 | |||
15 | foreach ($navigation["items"] as $item) { |
||
16 | if ($this->get("ribs_admin.acess_rights")->testRight($item["right"])) { |
||
17 | $menu = [ |
||
18 | "url" => $item["url"] |
||
19 | ]; |
||
20 | } |
||
21 | } |
||
22 | |||
23 | dump($menu); |
||
24 | |||
25 | return new Response(); |
||
26 | |||
27 | return $menu; |
||
28 | } |
||
29 | } |