Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SchemaLocator.php
Go to the documentation of this file.
1 <?php
7 
9 {
15  protected $_schema = null;
16 
22  protected $_perFileSchema = null;
23 
27  public function __construct(\Magento\Framework\Config\Dom\UrnResolver $urnResolver)
28  {
29  $this->_schema = $urnResolver->getRealPath('urn:magento:framework:Mview/etc/mview.xsd');
30  $this->_perFileSchema = $this->_schema;
31  }
32 
38  public function getSchema()
39  {
40  return $this->_schema;
41  }
42 
48  public function getPerFileSchema()
49  {
50  return $this->_perFileSchema;
51  }
52 }
__construct(\Magento\Framework\Config\Dom\UrnResolver $urnResolver)