Пример #1
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Framework\ObjectManager $objectManager
  * @param \Magento\Theme\Model\Uploader\Service $uploaderService
  * @param \Magento\Framework\Encryption\UrlCoder $urlCoder
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\ObjectManager $objectManager, \Magento\Theme\Model\Uploader\Service $uploaderService, \Magento\Framework\Encryption\UrlCoder $urlCoder, array $data = array())
 {
     parent::__construct($context, $registry, $formFactory, $objectManager, $data);
     $this->_uploaderService = $uploaderService;
     $this->urlCoder = $urlCoder;
 }
Пример #2
0
 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Framework\ObjectManagerInterface $objectManager
  * @param \Magento\Framework\File\Size $fileSize
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\File\Size $fileSize, array $data = [])
 {
     $this->_fileSize = $fileSize;
     parent::__construct($context, $registry, $formFactory, $objectManager, $data);
 }