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
9 
11 
17 {
23  protected $_schema = null;
24 
30  protected $_perFileSchema = null;
31 
35  public function __construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
36  {
37  $etcDir = $moduleReader->getModuleDir(\Magento\Framework\Module\Dir::MODULE_ETC_DIR, 'Magento_Config');
38  $this->_schema = $etcDir . '/system.xsd';
39  $this->_perFileSchema = $etcDir . '/system_file.xsd';
40  }
41 
47  public function getSchema()
48  {
49  return $this->_schema;
50  }
51 
57  public function getPerFileSchema()
58  {
59  return $this->_perFileSchema;
60  }
61 }
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader)