Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/app/code/Amasty/ExportCore/SchemaReader/Config/
Upload File :
Current File : //home/rtorresani/www/app/code/Amasty/ExportCore/SchemaReader/Config/SchemaLocator.php

<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Export Core for Magento 2 (System)
 */

namespace Amasty\ExportCore\SchemaReader\Config;

use Magento\Framework\Config\Dom\UrnResolver;

class SchemaLocator implements \Magento\Framework\Config\SchemaLocatorInterface
{
    /**
     * @var UrnResolver
     */
    private $urnResolver;

    public function __construct(UrnResolver $urnResolver)
    {
        $this->urnResolver = $urnResolver;
    }

    public function getSchema()
    {
        return $this->urnResolver->getRealPath('urn:amasty:module:Amasty_ExportCore:etc/am_export.xsd');
    }

    public function getPerFileSchema()
    {
        return $this->getSchema();
    }
}