@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function prePersist($entity) |
| 25 | 25 | { |
| 26 | 26 | if ($entity->getGuid() === null) { |
| 27 | - $entity->setGuid((string)Uuid::uuid4()); |
|
| 27 | + $entity->setGuid((string) Uuid::uuid4()); |
|
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | } |
@@ -44,8 +44,7 @@ |
||
| 44 | 44 | ]); |
| 45 | 45 | |
| 46 | 46 | foreach ($modules as $module) { |
| 47 | - $navigation = json_decode(file_get_contents($this->get("ribs_admin.globals")->getBaseBundlePath |
|
| 48 | - ($module->getPackageName(), $module->getDevMode()) . "/Resources/json/navigation.json"), true); |
|
| 47 | + $navigation = json_decode(file_get_contents($this->get("ribs_admin.globals")->getBaseBundlePath($module->getPackageName(), $module->getDevMode()) . "/Resources/json/navigation.json"), true); |
|
| 49 | 48 | |
| 50 | 49 | foreach ($navigation["items"] as $item) { |
| 51 | 50 | if ($this->get("ribs_admin.acess_rights")->testRight($item["right"]) && (!isset($item["position"]) || $item["position"] === "left")) { |