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  $this->_schema = $moduleReader->getModuleDir(Dir::MODULE_ETC_DIR, 'Magento_Backend') . '/menu.xsd';
38  }
39 
45  public function getSchema()
46  {
47  return $this->_schema;
48  }
49 
55  public function getPerFileSchema()
56  {
57  return $this->_perFileSchema;
58  }
59 }
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader)