private function getModuleNavigation()
	{
		$modules = $this->getDoctrine()->getRepository(Module::class)->findBy([
			"active" => true,
			"displayed" => true
		]);
		
		foreach ($modules as $module) {
			$navigation = json_decode(file_get_contents($this->get("ribs_admin.globals")->getBaseBundlePath
				($module->getPackageName()) . "/Resources/json/navigation.json"), true);
			
			foreach ($navigation["items"] as $item) {
				if ($this->get("ribs_admin.acess_rights")->testRight($item["right"])) {
					$this->nav[] = $item;
				}
			}
		}
	}
private function getModuleNavigation()
	{
		$modules = $this->getDoctrine()->getRepository(Module::class)->findBy([
			"active" => true,
			"displayed" => true
		]);
		
		foreach ($modules as $module) {
			$navigation = json_decode(file_get_contents($this->get("ribs_admin.globals")->getBaseBundlePath
				($module->getPackageName()) . "/Resources/json/navigation.json"), true);
			
			foreach ($navigation["items"] as $item) {
				if ($this->get("ribs_admin.acess_rights")->testRight($item["right"])) {
					$this->nav[] = $item;
				}
			}
		}
	}
private function getModuleNavigation ( ) { $ modules = $ this -> getDoctrine ( ) -> getRepository ( Module :: class ) -> findBy ( [ "active" => true , "displayed" => true ] ) ; foreach ( $ modules as $ module ) { $ navigation = json_decode ( file_get_contents ( $ this -> get ( "ribs_admin.globals" ) -> getBaseBundlePath ( $ module -> getPackageName ( ) ) . "/Resources/json/navigation.json" ) , true ) ; foreach ( $ navigation [ "items" ] as $ item ) { if ( $ this -> get ( "ribs_admin.acess_rights" ) -> testRight ( $ item [ "right" ] ) ) { $ this -> nav [ ] = $ item ; } } } }
to get all modules navigation and test right navigation
to get all modules navigation and test right navigation