dispatch(new GetDistrict($id))) { return null; } return $ad; } ), new \Twig_SimpleFunction( 'getNeighborhood', function ($id) { if (!$ad = $this->dispatch(new GetNeighborhood($id))) { return null; } return $ad; } ), new \Twig_SimpleFunction( 'getCity', function ($id) { if (!$ad = $this->dispatch(new GetCity($id))) { return null; } return $ad; } ), new \Twig_SimpleFunction( 'getCities', function ($country = null) { if (!$ad = $this->dispatch(new GetCities($country))) { return null; } return $ad; } ), new \Twig_SimpleFunction( 'getCountry', function ($id) { if (!$ad = $this->dispatch(new GetCountry($id))) { return null; } return $ad; } ), new \Twig_SimpleFunction( 'getCountries', function () { if (!$ad = $this->dispatch(new GetCountries())) { return null; } return $ad; } ), new \Twig_SimpleFunction( 'getVillage', function ($id) { if (!$ad = $this->dispatch(new GetVillage($id))) { return null; } return $ad; } ), ]; } }