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 
13 {
17  const MERGED_CONFIG_SCHEMA = 'payment.xsd';
18 
22  const PER_FILE_VALIDATION_SCHEMA = 'payment_file.xsd';
23 
29  protected $_schema = null;
30 
36  protected $_perFileSchema = null;
37 
41  public function __construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
42  {
43  $etcDir = $moduleReader->getModuleDir(\Magento\Framework\Module\Dir::MODULE_ETC_DIR, 'Magento_Payment');
44  $this->_schema = $etcDir . '/' . self::MERGED_CONFIG_SCHEMA;
45  $this->_perFileSchema = $etcDir . '/' . self::PER_FILE_VALIDATION_SCHEMA;
46  }
47 
53  public function getSchema()
54  {
55  return $this->_schema;
56  }
57 
63  public function getPerFileSchema()
64  {
65  return $this->_perFileSchema;
66  }
67 }
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader)