Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Context.php
Go to the documentation of this file.
1 <?php
7 
20 {
24  protected $_logger;
25 
29  protected $_eventManager;
30 
34  protected $_resourceModel;
35 
39  protected $_modulesReader;
40 
44  protected $_moduleList;
45 
49  protected $_resource;
50 
54  protected $_migrationFactory;
55 
59  protected $_encryptor;
60 
64  protected $filesystem;
65 
79  public function __construct(
80  \Psr\Log\LoggerInterface $logger,
81  \Magento\Framework\Event\ManagerInterface $eventManager,
82  \Magento\Framework\App\ResourceConnection $appResource,
83  \Magento\Framework\Module\Dir\Reader $modulesReader,
84  \Magento\Framework\Module\ModuleListInterface $moduleList,
85  \Magento\Framework\Module\ResourceInterface $resource,
86  \Magento\Framework\Module\Setup\MigrationFactory $migrationFactory,
87  \Magento\Framework\Encryption\EncryptorInterface $encryptor,
88  \Magento\Framework\Filesystem $filesystem
89  ) {
90  $this->_logger = $logger;
91  $this->_eventManager = $eventManager;
92  $this->_resourceModel = $appResource;
93  $this->_modulesReader = $modulesReader;
94  $this->_moduleList = $moduleList;
95  $this->_resource = $resource;
96  $this->_migrationFactory = $migrationFactory;
97  $this->_encryptor = $encryptor;
98  $this->filesystem = $filesystem;
99  }
100 
104  public function getEventManager()
105  {
106  return $this->_eventManager;
107  }
108 
112  public function getLogger()
113  {
114  return $this->_logger;
115  }
116 
120  public function getModuleList()
121  {
122  return $this->_moduleList;
123  }
124 
128  public function getModulesReader()
129  {
130  return $this->_modulesReader;
131  }
132 
136  public function getResourceModel()
137  {
138  return $this->_resourceModel;
139  }
140 
144  public function getMigrationFactory()
145  {
147  }
148 
152  public function getResource()
153  {
154  return $this->_resource;
155  }
156 
160  public function getEncryptor()
161  {
162  return $this->_encryptor;
163  }
164 
168  public function getFilesystem()
169  {
170  return $this->filesystem;
171  }
172 }
$resource
Definition: bulk.php:12
$logger
__construct(\Psr\Log\LoggerInterface $logger, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\App\ResourceConnection $appResource, \Magento\Framework\Module\Dir\Reader $modulesReader, \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Framework\Module\ResourceInterface $resource, \Magento\Framework\Module\Setup\MigrationFactory $migrationFactory, \Magento\Framework\Encryption\EncryptorInterface $encryptor, \Magento\Framework\Filesystem $filesystem)
Definition: Context.php:79