Esempio n. 1
0
 /**
  * @param CustomerManagerInterface $customerManager
  * @param SessionInterface         $session
  * @param SecurityContextInterface $securityContext
  * @param LocaleDetectorInterface  $localeDetector
  */
 public function __construct(CustomerManagerInterface $customerManager, SessionInterface $session, SecurityContextInterface $securityContext, LocaleDetectorInterface $localeDetector)
 {
     $this->customerManager = $customerManager;
     $this->session = $session;
     $this->securityContext = $securityContext;
     $this->locale = $localeDetector->getLocale();
 }
 /**
  * {@inheritDoc}
  */
 public function getTimezone()
 {
     $locale = $this->localeDetector->getLocale();
     return isset($this->timezoneMap[$locale]) ? $this->timezoneMap[$locale] : null;
 }