Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Context $context
  * @param DateTimeFormatterInterface $dateTimeFormatter
  * @param \Magento\Framework\Locale\ResolverInterface $localeResolver
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, DateTimeFormatterInterface $dateTimeFormatter, \Magento\Framework\Locale\ResolverInterface $localeResolver, array $data = [])
 {
     parent::__construct($context, $dateTimeFormatter, $data);
     $this->localeResolver = $localeResolver;
 }
Exemplo n.º 2
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Framework\Locale\ResolverInterface $localeResolver
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Locale\ResolverInterface $localeResolver, array $data = array())
 {
     parent::__construct($context, $data);
     $this->_localeResolver = $localeResolver;
 }