Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-payment
Model
Config
SchemaLocator.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Payment\Model\Config
;
9
10
use
Magento\Framework\Module\Dir
;
11
12
class
SchemaLocator
implements
\Magento\Framework\Config\SchemaLocatorInterface
13
{
17
const
MERGED_CONFIG_SCHEMA
=
'payment.xsd'
;
18
22
const
PER_FILE_VALIDATION_SCHEMA
=
'payment_file.xsd'
;
23
29
protected
$_schema
=
null
;
30
36
protected
$_perFileSchema
=
null
;
37
41
public
function
__construct
(\
Magento
\Framework\Module\
Dir
\
Reader
$moduleReader)
42
{
43
$etcDir = $moduleReader->getModuleDir(\
Magento
\Framework\Module\
Dir::MODULE_ETC_DIR
,
'Magento_Payment'
);
44
$this->_schema = $etcDir .
'/'
.
self::MERGED_CONFIG_SCHEMA
;
45
$this->_perFileSchema = $etcDir .
'/'
.
self::PER_FILE_VALIDATION_SCHEMA
;
46
}
47
53
public
function
getSchema
()
54
{
55
return
$this->_schema
;
56
}
57
63
public
function
getPerFileSchema
()
64
{
65
return
$this->_perFileSchema
;
66
}
67
}
Magento\Framework\Module\Dir
Definition:
Reader.php:8
Magento\Framework\Module\Dir\MODULE_ETC_DIR
const MODULE_ETC_DIR
Definition:
Dir.php:18
Magento\Payment\Model\Config\SchemaLocator\$_perFileSchema
$_perFileSchema
Definition:
SchemaLocator.php:36
Magento\Payment\Model\Config\SchemaLocator
Definition:
SchemaLocator.php:12
Magento\Payment\Model\Config\SchemaLocator\MERGED_CONFIG_SCHEMA
const MERGED_CONFIG_SCHEMA
Definition:
SchemaLocator.php:17
Magento\Payment\Model\Config\SchemaLocator\$_schema
$_schema
Definition:
SchemaLocator.php:29
Magento\Payment\Model\Config
Definition:
ReaderTest.php:8
Magento\Payment\Model\Config\SchemaLocator\getPerFileSchema
getPerFileSchema()
Definition:
SchemaLocator.php:63
Magento
Magento\Payment\Model\Config\SchemaLocator\__construct
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
Definition:
SchemaLocator.php:41
Magento\Framework\Config\SchemaLocatorInterface
Definition:
SchemaLocatorInterface.php:16
Magento\Framework\Module\Dir
Definition:
Dir.php:13
Magento\Payment\Model\Config\SchemaLocator\PER_FILE_VALIDATION_SCHEMA
const PER_FILE_VALIDATION_SCHEMA
Definition:
SchemaLocator.php:22
Magento\Framework\Module\Dir\Reader
Definition:
Reader.php:20
Magento\Payment\Model\Config\SchemaLocator\getSchema
getSchema()
Definition:
SchemaLocator.php:53