Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ResourceFactory.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Setup\Module;
7 
10 use Zend\ServiceManager\ServiceLocatorInterface;
11 
13 {
19  protected $serviceLocator;
20 
26  public function __construct(ServiceLocatorInterface $serviceLocator)
27  {
28  $this->serviceLocator = $serviceLocator;
29  }
30 
35  public function create(\Magento\Framework\App\DeploymentConfig $deploymentConfig)
36  {
37  $connectionFactory = $this->serviceLocator->get(\Magento\Setup\Module\ConnectionFactory::class);
39  new ResourceConfig(),
40  $connectionFactory,
42  );
43  return $resource;
44  }
45 }
__construct(ServiceLocatorInterface $serviceLocator)
$resource
Definition: bulk.php:12
$deploymentConfig
create(\Magento\Framework\App\DeploymentConfig $deploymentConfig)