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 
10 
15 {
21  protected $schema = null;
22 
28  protected $perFileSchema = null;
29 
33  public function __construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
34  {
35  $xsd = $moduleReader->getModuleDir(Dir::MODULE_ETC_DIR, 'Magento_Paypal') . '/rules.xsd';
36  $this->perFileSchema = $xsd;
37  $this->schema = $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)