getACL(); error_log(print_r($acl_data, true)); return $this->render('home.html.twig'); } /** * @Menu(selected="home") */ public function testIsGranted() { error_log(print_r($this->isGranted('dashboard.menu'), true)); return $this->render('home.html.twig'); } /** * @Menu(selected="home") */ public function gmap() { return $this->render('test/map.html.twig'); } /** * @Menu(selected="home") */ public function distance(MapTools $map_tools) { $point = new Point(121.0495453, 14.6042567); // $point = new Point(120.343692, 16.048560); $res = $map_tools->getClosestOutlets($point, 10); foreach ($res as $data) { error_log($data['db_distance']); error_log($data['distance']); error_log($data['duration']); } return $this->render('home.html.twig'); } }