Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PackageInfoFactory.php
Go to the documentation of this file.
1 <?php
7 
12 {
18  protected $objectManager = null;
19 
26  {
27  $this->objectManager = $objectManager;
28  }
29 
35  public function create()
36  {
37  $fullModuleList = $this->objectManager->create(\Magento\Framework\Module\FullModuleList::class);
38  $reader = $this->objectManager->create(
39  \Magento\Framework\Module\Dir\Reader::class,
40  ['moduleList' => $fullModuleList]
41  );
42  return $this->objectManager->create(\Magento\Framework\Module\PackageInfo::class, ['reader' => $reader]);
43  }
44 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)