Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProxyGenerator.php
Go to the documentation of this file.
1 <?php
8 
11 
13 {
17  private $proxyScanner;
18 
22  private $data;
23 
27  private $configurationScanner;
28 
34  public function __construct(
35  Scanner\XmlScanner $proxyScanner,
36  \Magento\Setup\Module\Di\Code\Scanner\ConfigurationScanner $configurationScanner,
37  $data = []
38  ) {
39  $this->proxyScanner = $proxyScanner;
40  $this->data = $data;
41  $this->configurationScanner = $configurationScanner;
42  }
43 
49  public function doOperation()
50  {
51  $files = $this->configurationScanner->scan('di.xml');
52  $proxies = $this->proxyScanner->collectEntities($files);
53  foreach ($proxies as $entityName) {
54  class_exists($entityName);
55  }
56  }
57 
63  public function getName()
64  {
65  return 'Proxies code generation';
66  }
67 }
__construct(Scanner\XmlScanner $proxyScanner, \Magento\Setup\Module\Di\Code\Scanner\ConfigurationScanner $configurationScanner, $data=[])
foreach($appDirs as $dir) $files