40 private $remoteAddress;
54 parent::__construct($context);
57 $this->remoteAddress = $remoteAddress;
66 if (
null === $this->sessionsInfoCollection) {
67 $this->sessionsInfoCollection = $this->sessionsManager->getSessionsForCurrentUser();
87 return $this->remoteAddress->getRemoteAddress(
false);
99 $time = new \DateTime($time);
100 return $this->_localeDate->formatDateTime(
102 \IntlDateFormatter::MEDIUM,
103 \IntlDateFormatter::MEDIUM
getSessionInfoCollection()
areMultipleSessionsActive()
__construct(\Magento\Backend\Block\Template\Context $context, ConfigInterface $securityConfig, \Magento\Security\Model\AdminSessionsManager $sessionsManager, RemoteAddress $remoteAddress)