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 
14 {
20  protected $_schema = null;
21 
27  protected $_perFileSchema = null;
28 
32  public function __construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
33  {
34  $etcDir = $moduleReader->getModuleDir(Dir::MODULE_ETC_DIR, 'Magento_Integration');
35  $this->_schema = $etcDir . '/integration/integration.xsd';
36  $this->_perFileSchema = $etcDir . '/integration/integration_file.xsd';
37  }
38 
44  public function getSchema()
45  {
46  return $this->_schema;
47  }
48 
54  public function getPerFileSchema()
55  {
56  return $this->_perFileSchema;
57  }
58 }
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader)