'openStreetMapGetInfo', 'arguments' => array( 'ip' => $request->getContent() ), 'results' => array() ); $osm_plugin = PluginManager::getInstance()->getPlugin('Mibew:OpenStreetMap'); $osm_plugin->usersFunctionCallHandler($geo_data); $results = $geo_data['errorCode'] ? array() : $geo_data['results']; return new JsonResponse($results); } }