Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RouteParamsResolverFactory.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework\Url;
7 
9 {
13  protected $_objectManager;
14 
18  protected $_instanceName;
19 
24  public function __construct(
26  $instanceName = \Magento\Framework\Url\RouteParamsResolverInterface::class
27  ) {
28  $this->_objectManager = $objectManager;
29  $this->_instanceName = $instanceName;
30  }
31 
38  public function create(array $data = [])
39  {
40  return $this->_objectManager->create($this->_instanceName, $data);
41  }
42 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Url\RouteParamsResolverInterface::class)
$objectManager
Definition: bootstrap.php:17