code: public function onKernelRequest(\Symfony\Component\HttpKernel\Event\GetResponseEvent $e){
          $request = $e->getRequest();
  
          $currentDomain = $request->getHttpHost();
          if (false !== strpos($currentDomain,':')) {
              $currentDomain = explode(':',$currentDomain);
              $currentDomain = $currentDomain[0];
          }
          $response = $this->siteManagement->getSiteByDomain(str_replace('www.', '', $currentDomain));
  
  		if($response->error->exist){
  			$this->kernel->getContainer()->get('session')->set('_currentSiteId', 1);
  			return;
  		}
  
  		$site = $response->result->set;
  
          $this->kernel->getContainer()->get('session')->set('_currentSiteId', $site->getId());
          return;
      }
docs: @name 			onKernelRequest()
  
  @author          Can Berkol
  
  @since			1.0.0
  @version         1.0.5
  
  @param 			GetResponseEvent 	        $e