| Current Path : /home/rtorresani/www/vendor/magento/framework-message-queue/Config/Reader/Xml/ |
| Current File : //home/rtorresani/www/vendor/magento/framework-message-queue/Config/Reader/Xml/SchemaLocator.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\MessageQueue\Config\Reader\Xml;
/**
* Schema locator for Publishers
*
* @deprecated 103.0.0
*/
class SchemaLocator implements \Magento\Framework\Config\SchemaLocatorInterface
{
/**
* Path to corresponding XSD file with validation rules for merged config
*
* @var string
*/
protected $schema;
/**
* Path to corresponding XSD file with validation rules for separate config files
*
* @var string
*/
protected $perFileSchema;
/**
* Initialize dependencies.
*
* @param \Magento\Framework\Config\Dom\UrnResolver $urnResolver
*/
public function __construct(\Magento\Framework\Config\Dom\UrnResolver $urnResolver)
{
$this->schema = $urnResolver->getRealPath('urn:magento:framework-message-queue:etc/queue_merged.xsd');
$this->perFileSchema = $urnResolver->getRealPath('urn:magento:framework-message-queue:etc/queue.xsd');
}
/**
* Get path to merged config schema
*
* @return string|null
*/
public function getSchema()
{
return $this->schema;
}
/**
* Get path to per file validation schema
*
* @return string|null
*/
public function getPerFileSchema()
{
return $this->perFileSchema;
}
}