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 
18 {
24  protected $schema = null;
25 
32  public function __construct(
33  UrnResolver $urnResolver,
34  $realPath = 'urn:magento:framework:Config/etc/view.xsd'
35  ) {
36  $this->schema = $urnResolver->getRealPath($realPath);
37  }
38 
44  public function getSchema()
45  {
46  return $this->schema;
47  }
48 
54  public function getPerFileSchema()
55  {
56  return $this->getSchema();
57  }
58 }
__construct(UrnResolver $urnResolver, $realPath='urn:magento:framework:Config/etc/view.xsd')