/**
  * Gets the weather as response
  * 
  * @param mixed (integer|string) $city
  * @return stdClass
  */
 public function getWeather($city)
 {
     // Cheking if cache is enabled
     if ($this->container->getParameter('pianosolo.weather.options.cache') === TRUE) {
         $cacheID = $city . 'w';
         if (!($weather = $this->getCache($cacheID))) {
             $weather = $this->weatherService->getWeather($city);
             $this->saveCache($cacheID, $weather);
         }
     } else {
         $weather = $this->weatherService->getWeather($city);
     }
     return $weather;
 }
 /**
  * Gets the weather as response
  *
  * @param mixed (integer|string) $city
  * @return /stdClass
  */
 public function getWeather($city)
 {
     // Checking if cache is enabled
     if ($this->cacheIsEnabled) {
         $cacheID = $city . 'w';
         if (!($weather = $this->getCache($cacheID))) {
             $weather = $this->weatherService->getWeather($city);
             $this->saveCache($cacheID, $weather);
         }
     } else {
         $weather = $this->weatherService->getWeather($city);
     }
     return $weather;
 }