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 declare(strict_types=1);
8 
10 
12 
17 {
23  private $schema = null;
24 
30  private $perFileSchema = null;
31 
35  public function __construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
36  {
37  $this->schema = $moduleReader->getModuleDir(Dir::MODULE_ETC_DIR, 'Magento_WebapiAsync') . '/webapi_async.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)