コード例 #1
0
 /**
  * @param Context $context
  * @param Registry $coreRegistry
  * @param PageFactory $resultPageFactory
  * @param NewsFactory $newsFactory
  */
 public function __construct(Context $context, Registry $coreRegistry, PageFactory $resultPageFactory, ManufacturerFactory $manufacturerFactory)
 {
     parent::__construct($context);
     $this->_coreRegistry = $coreRegistry;
     $this->_resultPageFactory = $resultPageFactory;
     $this->_manufacturerFactory = $manufacturerFactory;
 }
コード例 #2
0
ファイル: Rule.php プロジェクト: pradeep-wagento/magento2
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Tax\Api\TaxRuleRepositoryInterface $ruleService
  * @param \Magento\Tax\Api\Data\TaxRuleInterfaceFactory $taxRuleDataObjectFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Tax\Api\TaxRuleRepositoryInterface $ruleService, \Magento\Tax\Api\Data\TaxRuleInterfaceFactory $taxRuleDataObjectFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->ruleService = $ruleService;
     $this->taxRuleDataObjectFactory = $taxRuleDataObjectFactory;
     parent::__construct($context);
 }
コード例 #3
0
ファイル: AddComment.php プロジェクト: opexsw/magento2
 /**
  * @param Action\Context $context
  * @param \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
  * @param ShipmentCommentSender $shipmentCommentSender
  * @param LayoutFactory $resultLayoutFactory
  */
 public function __construct(Action\Context $context, \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader, ShipmentCommentSender $shipmentCommentSender, LayoutFactory $resultLayoutFactory)
 {
     $this->shipmentLoader = $shipmentLoader;
     $this->shipmentCommentSender = $shipmentCommentSender;
     $this->resultLayoutFactory = $resultLayoutFactory;
     parent::__construct($context);
 }
コード例 #4
0
ファイル: Save.php プロジェクト: Doability/magento2dev
 /**
  * @param Action\Context $context
  * @param \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
  * @param \Magento\Shipping\Model\Shipping\LabelGenerator $labelGenerator
  * @param ShipmentSender $shipmentSender
  */
 public function __construct(Action\Context $context, \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader, \Magento\Shipping\Model\Shipping\LabelGenerator $labelGenerator, ShipmentSender $shipmentSender)
 {
     $this->shipmentLoader = $shipmentLoader;
     $this->labelGenerator = $labelGenerator;
     $this->shipmentSender = $shipmentSender;
     parent::__construct($context);
 }
コード例 #5
0
ファイル: Rate.php プロジェクト: Doability/magento2dev
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Tax\Model\Calculation\Rate\Converter $taxRateConverter
  * @param \Magento\Tax\Api\TaxRateRepositoryInterface $taxRateRepository
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Tax\Model\Calculation\Rate\Converter $taxRateConverter, \Magento\Tax\Api\TaxRateRepositoryInterface $taxRateRepository)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_taxRateConverter = $taxRateConverter;
     $this->_taxRateRepository = $taxRateRepository;
     parent::__construct($context);
 }
コード例 #6
0
ファイル: Index.php プロジェクト: nblair/magescotch
 /**
  * @param Context $context
  * @param PageFactory $resultPageFactory
  */
 public function __construct(
     Context $context,
     PageFactory $resultPageFactory
 ) {
     parent::__construct($context);
     $this->resultPageFactory = $resultPageFactory;
 }
コード例 #7
0
ファイル: Index.php プロジェクト: aiesh/magento2
 /**
  * @param Action\Context $context
  * @param Product\Initialization\Helper $initializationHelper
  * @param Product\Builder $productBuilder
  * @param AttributeFactory $attributeFactory
  */
 public function __construct(Action\Context $context, Product\Initialization\Helper $initializationHelper, Product\Builder $productBuilder, AttributeFactory $attributeFactory)
 {
     $this->initializationHelper = $initializationHelper;
     $this->productBuilder = $productBuilder;
     $this->attributeFactory = $attributeFactory;
     parent::__construct($context);
 }
コード例 #8
0
ファイル: Save.php プロジェクト: aiesh/magento2
 /**
  * @param Action\Context $context
  * @param \Magento\Sales\Controller\Adminhtml\Order\InvoiceLoader $invoiceLoader
  * @param InvoiceCommentSender $invoiceCommentSender
  * @param ShipmentSender $shipmentSender
  */
 public function __construct(Action\Context $context, \Magento\Sales\Controller\Adminhtml\Order\InvoiceLoader $invoiceLoader, InvoiceCommentSender $invoiceCommentSender, ShipmentSender $shipmentSender)
 {
     $this->invoiceLoader = $invoiceLoader;
     $this->invoiceCommentSender = $invoiceCommentSender;
     $this->shipmentSender = $shipmentSender;
     parent::__construct($context);
 }
コード例 #9
0
ファイル: File.php プロジェクト: aiesh/magento2
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Downloadable\Model\Link $link
  * @param \Magento\Downloadable\Model\Sample $sample
  * @param \Magento\Downloadable\Helper\File $fileHelper
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Downloadable\Model\Link $link, \Magento\Downloadable\Model\Sample $sample, \Magento\Downloadable\Helper\File $fileHelper)
 {
     $this->_link = $link;
     $this->_sample = $sample;
     $this->_fileHelper = $fileHelper;
     parent::__construct($context);
 }
コード例 #10
0
ファイル: View.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * @param Action\Context $context
  * @param \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
  * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
  */
 public function __construct(Action\Context $context, \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory)
 {
     $this->shipmentLoader = $shipmentLoader;
     $this->resultPageFactory = $resultPageFactory;
     $this->resultForwardFactory = $resultForwardFactory;
     parent::__construct($context);
 }
コード例 #11
0
ファイル: Grid.php プロジェクト: nblair/magescotch
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
  */
 public function __construct(
     \Magento\Backend\App\Action\Context $context,
     \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
 ) {
     parent::__construct($context);
     $this->resultLayoutFactory = $resultLayoutFactory;
 }
コード例 #12
0
ファイル: Transactions.php プロジェクト: nja78/magento2
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param Registry $coreRegistry
  * @param PageFactory $resultPageFactory
  * @param LayoutFactory $resultLayoutFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Registry $coreRegistry, PageFactory $resultPageFactory, LayoutFactory $resultLayoutFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->resultPageFactory = $resultPageFactory;
     $this->resultLayoutFactory = $resultLayoutFactory;
     parent::__construct($context);
 }
コード例 #13
0
ファイル: Edit.php プロジェクト: itmyprofession/M2_Sample
 /**
  * Initialize Group Controller
  *
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
  * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     parent::__construct($context);
     $this->resultForwardFactory = $resultForwardFactory;
     $this->resultPageFactory = $resultPageFactory;
 }
コード例 #14
0
ファイル: Save.php プロジェクト: Doability/magento2dev
 /**
  * @param Context $context
  * @param DesignConfigRepository $designConfigRepository
  * @param ConfigFactory $configFactory
  * @param DataPersistorInterface $dataPersistor
  */
 public function __construct(Context $context, DesignConfigRepository $designConfigRepository, ConfigFactory $configFactory, DataPersistorInterface $dataPersistor)
 {
     $this->designConfigRepository = $designConfigRepository;
     $this->configFactory = $configFactory;
     $this->dataPersistor = $dataPersistor;
     parent::__construct($context);
 }
コード例 #15
0
ファイル: Sendrequest.php プロジェクト: wirecard/magento2-wcp
 public function __construct(Context $context, \Wirecard\CheckoutPage\Model\Support $supportModel, \Wirecard\CheckoutPage\Helper\Data $dataHelper, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
 {
     parent::__construct($context);
     $this->_supportModel = $supportModel;
     $this->_dataHelper = $dataHelper;
     $this->_resultPageFactory = $resultPageFactory;
 }
コード例 #16
0
 /**
  * constructor
  *
  * @param \Mageplaza\Blog\Model\PostFactory $postFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Mageplaza\Blog\Model\PostFactory $postFactory, \Magento\Framework\Registry $coreRegistry, \Magento\Backend\App\Action\Context $context)
 {
     $this->postFactory = $postFactory;
     $this->coreRegistry = $coreRegistry;
     //$this->resultRedirectFactory = $resultRedirectFactory;
     parent::__construct($context);
 }
コード例 #17
0
ファイル: GetAttributes.php プロジェクト: nblair/magescotch
 /**
  * @param Action\Context $context
  * @param \Magento\Framework\Json\Helper\Data $jsonHelper
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $collectionFactory
  */
 public function __construct(Action\Context $context, \Magento\Framework\Json\Helper\Data $jsonHelper, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $collectionFactory)
 {
     $this->jsonHelper = $jsonHelper;
     $this->storeManager = $storeManager;
     $this->collectionFactory = $collectionFactory;
     parent::__construct($context);
 }
コード例 #18
0
ファイル: Category.php プロジェクト: mirasvit/module-blog
 /**
  * @param CategoryFactory $authorFactory
  * @param Registry        $registry
  * @param Context         $context
  */
 public function __construct(CategoryFactory $authorFactory, Registry $registry, Context $context)
 {
     $this->categoryFactory = $authorFactory;
     $this->registry = $registry;
     $this->context = $context;
     parent::__construct($context);
 }
コード例 #19
0
ファイル: Index.php プロジェクト: Doability/magento2dev
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Webshopapps\Matrixrate\Model\ResourceModel\Carrier\Matrixrate $matrixRate, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_matrixRate = $matrixRate;
     $this->resultJsonFactory = $resultJsonFactory;
     parent::__construct($context);
 }
コード例 #20
0
ファイル: NewAction.php プロジェクト: Doability/magento2dev
 /**
  * @param Action\Context $context
  * @param Registry $registry
  * @param PageFactory $resultPageFactory
  * @param InvoiceService $invoiceService
  */
 public function __construct(Action\Context $context, Registry $registry, PageFactory $resultPageFactory, InvoiceService $invoiceService)
 {
     $this->registry = $registry;
     $this->resultPageFactory = $resultPageFactory;
     parent::__construct($context);
     $this->invoiceService = $invoiceService;
 }
コード例 #21
0
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory
  * @param \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter
  * @param DateTimeFormatterInterface $dateTimeFormatter
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\App\Response\Http\FileFactory $fileFactory, \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter, DateTimeFormatterInterface $dateTimeFormatter)
 {
     parent::__construct($context);
     $this->_fileFactory = $fileFactory;
     $this->_dateFilter = $dateFilter;
     $this->dateTimeFormatter = $dateTimeFormatter;
 }
コード例 #22
0
ファイル: MassDelete.php プロジェクト: Rapidmage/Firewall
 public function __construct(Context $context, Registry $coreRegistry, PageFactory $resultPageFactory, RulesFactory $rulesFactory)
 {
     parent::__construct($context);
     $this->_coreRegistry = $coreRegistry;
     $this->_resultPageFactory = $resultPageFactory;
     $this->_rulesFactory = $rulesFactory;
 }
コード例 #23
0
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param [] $reportTypes
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter, \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory, array $reportTypes)
 {
     $this->_dateFilter = $dateFilter;
     $this->reportTypes = $reportTypes;
     $this->resultRedirectFactory = $resultRedirectFactory;
     parent::__construct($context);
 }
コード例 #24
0
ファイル: Save.php プロジェクト: nja78/magento2
 /**
  * @param Action\Context $context
  * @param \Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader $creditmemoLoader
  * @param CreditmemoSender $creditmemoSender
  * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
  */
 public function __construct(Action\Context $context, \Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader $creditmemoLoader, CreditmemoSender $creditmemoSender, \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory)
 {
     $this->creditmemoLoader = $creditmemoLoader;
     $this->creditmemoSender = $creditmemoSender;
     $this->resultForwardFactory = $resultForwardFactory;
     parent::__construct($context);
 }
コード例 #25
0
ファイル: RemoveTrack.php プロジェクト: nblair/magescotch
 /**
  * @param Action\Context $context
  * @param \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
  */
 public function __construct(
     Action\Context $context,
     \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
 ) {
     $this->shipmentLoader = $shipmentLoader;
     parent::__construct($context);
 }
コード例 #26
0
 /**
  * @param Action\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Json\Helper\Data $jsonHelper
  * @param AttributesListInterface $attributesList
  */
 public function __construct(Action\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Json\Helper\Data $jsonHelper, AttributesListInterface $attributesList)
 {
     $this->storeManager = $storeManager;
     $this->jsonHelper = $jsonHelper;
     $this->attributesList = $attributesList;
     parent::__construct($context);
 }
コード例 #27
0
ファイル: Delete.php プロジェクト: DRAJI/Rapidmage
 /**
  * @param Context $context
  * @param Registry $coreRegistry
  * @param PageFactory $resultPageFactory
  * @param IpFactory $IpFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Rapidmage\Firewall\Model\WhiteipFactory $IpFactory)
 {
     parent::__construct($context);
     $this->_coreRegistry = $coreRegistry;
     $this->_resultPageFactory = $resultPageFactory;
     $this->_ipFactory = $IpFactory;
 }
コード例 #28
0
ファイル: Product.php プロジェクト: aiesh/magento2
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Review\Model\ReviewFactory $reviewFactory
  * @param \Magento\Review\Model\RatingFactory $ratingFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Review\Model\ReviewFactory $reviewFactory, \Magento\Review\Model\RatingFactory $ratingFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_reviewFactory = $reviewFactory;
     $this->_ratingFactory = $ratingFactory;
     parent::__construct($context);
 }
コード例 #29
0
ファイル: Save.php プロジェクト: opexsw/magento2
 /**
  * @param Action\Context $context
  * @param Registry $registry
  * @param InvoiceSender $invoiceSender
  * @param ShipmentSender $shipmentSender
  */
 public function __construct(Action\Context $context, Registry $registry, InvoiceSender $invoiceSender, ShipmentSender $shipmentSender)
 {
     $this->registry = $registry;
     $this->invoiceSender = $invoiceSender;
     $this->shipmentSender = $shipmentSender;
     parent::__construct($context);
 }
コード例 #30
0
ファイル: Preview.php プロジェクト: smile-sa/elasticsuite
 /**
  * Constructor.
  *
  * @param \Magento\Backend\App\Action\Context                     $context             Controller context.
  * @param \Smile\ElasticsuiteVirtualCategory\Model\PreviewFactory $previewModelFactory Preview model factory.
  * @param \Magento\Catalog\Model\CategoryFactory                  $categoryFactory     Category factory.
  * @param \Magento\Framework\Json\Helper\Data                     $jsonHelper          JSON Helper.
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Smile\ElasticsuiteVirtualCategory\Model\PreviewFactory $previewModelFactory, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Framework\Json\Helper\Data $jsonHelper)
 {
     parent::__construct($context);
     $this->categoryFactory = $categoryFactory;
     $this->previewModelFactory = $previewModelFactory;
     $this->jsonHelper = $jsonHelper;
 }