コード例 #1
0
ファイル: CustomerSelector.php プロジェクト: kinkinweb/lhvb
 /**
  * @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();
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function getTimezone()
 {
     $locale = $this->localeDetector->getLocale();
     return isset($this->timezoneMap[$locale]) ? $this->timezoneMap[$locale] : null;
 }