Beispiel #1
0
 private function initRegion(GeoIP $geoIP)
 {
     $storage = new SessionStorage();
     // TODO use binding
     if (!$storage->has('region')) {
         $storage->set('region', $this->getRegionByIp($geoIP));
     }
     $this->region = $storage->get('region');
 }