I had to change to "private function get_backend(&$server)" to have it working correctly