Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConfigFactory.php
Go to the documentation of this file.
1 <?php
7 
10 
12 {
16  private $om;
17 
22  public function __construct(
24  ) {
25  $this->om = $om;
26  }
27 
33  public function create($paymentCode = null, $pathPattern = null)
34  {
35  $arguments = [
36  'methodCode' => $paymentCode
37  ];
38 
39  if ($pathPattern !== null) {
40  $arguments['pathPattern'] = $pathPattern;
41  }
42 
43  return $this->om->create(Config::class, $arguments);
44  }
45 }
$pathPattern
__construct(ObjectManagerInterface $om)
create($paymentCode=null, $pathPattern=null)
$om
$arguments