示例#1
0
 /**
  * @param \Magento\Install\Model\Installer $installer
  * @param \Magento\Framework\App\Filesystem $filesystem
  * @param \Magento\Install\Model\Config $installConfig
  * @param \Magento\Framework\Message\ManagerInterface $messageManager
  */
 public function __construct(\Magento\Install\Model\Installer $installer, \Magento\Framework\App\Filesystem $filesystem, \Magento\Install\Model\Config $installConfig, \Magento\Framework\Message\ManagerInterface $messageManager)
 {
     parent::__construct($installer);
     $this->_filesystem = $filesystem;
     $this->_installConfig = $installConfig;
     $this->messageManager = $messageManager;
 }
示例#2
0
文件: Db.php 项目: aiesh/magento2
 /**
  * @param \Magento\Install\Model\Installer $installer
  * @param \Magento\Framework\Logger $logger
  * @param \Magento\Install\Model\Installer\Db\Factory $dbFactory
  * @param array $dbConfig
  */
 public function __construct(\Magento\Install\Model\Installer $installer, \Magento\Framework\Logger $logger, \Magento\Install\Model\Installer\Db\Factory $dbFactory, array $dbConfig)
 {
     parent::__construct($installer);
     $this->_logger = $logger;
     $this->_dbConfig = $dbConfig;
     $this->_dbFactory = $dbFactory;
 }
示例#3
0
文件: Config.php 项目: aiesh/magento2
 /**
  * @param \Magento\Install\Model\Installer $installer
  * @param \Magento\Framework\App\RequestInterface $request
  * @param \Magento\Framework\App\Filesystem $filesystem
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Message\ManagerInterface $messageManager
  */
 public function __construct(\Magento\Install\Model\Installer $installer, \Magento\Framework\App\RequestInterface $request, \Magento\Framework\App\Filesystem $filesystem, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Message\ManagerInterface $messageManager)
 {
     parent::__construct($installer);
     $this->_request = $request;
     $this->_storeManager = $storeManager;
     $this->_filesystem = $filesystem;
     $this->_pubDirectory = $filesystem->getDirectoryRead(\Magento\Framework\App\Filesystem::PUB_DIR);
     $this->_configDirectory = $filesystem->getDirectoryWrite(\Magento\Framework\App\Filesystem::CONFIG_DIR);
     $this->messageManager = $messageManager;
 }
示例#4
0
文件: Pear.php 项目: aiesh/magento2
 /**
  * @param \Magento\Install\Model\Installer $installer
  * @param \Magento\Framework\Message\ManagerInterface $messageManager
  */
 public function __construct(\Magento\Install\Model\Installer $installer, \Magento\Framework\Message\ManagerInterface $messageManager)
 {
     parent::__construct($installer);
     $this->messageManager = $messageManager;
 }
示例#5
0
 /**
  * @param \Magento\Install\Model\Installer $installer
  * @param \Magento\Framework\App\Resource\Config $resourceConfig
  * @param \Magento\Framework\Module\UpdaterInterface $dbUpdater
  * @param AppFilesystem $filesystem
  * @param \Magento\Install\Model\Installer\Data $installerData
  * @param \Magento\Framework\App\State $appState
  * @param \Magento\Framework\Locale\ListsInterface $localeLists
  * @param \Magento\Framework\ObjectManager $objectManager
  */
 public function __construct(\Magento\Install\Model\Installer $installer, \Magento\Framework\App\Resource\Config $resourceConfig, \Magento\Framework\Module\UpdaterInterface $dbUpdater, AppFilesystem $filesystem, \Magento\Install\Model\Installer\Data $installerData, \Magento\Framework\App\State $appState, \Magento\Framework\Locale\ListsInterface $localeLists, \Magento\Framework\ObjectManager $objectManager)
 {
     parent::__construct($installer);
     $this->_resourceConfig = $resourceConfig;
     $this->_dbUpdater = $dbUpdater;
     $this->_filesystem = $filesystem;
     $this->_installerData = $installerData;
     $this->_installer->setDataModel($this->_installerData);
     $this->_appState = $appState;
     $this->_localeLists = $localeLists;
     $this->_objectManager = $objectManager;
     $this->installParameters = array_keys($this->requiredParameters + $this->optionalParameters);
 }