Пример #1
0
 /**
  * @param \Magento\Framework\Config\FileResolverInterface $fileResolver
  * @param \Magento\Framework\Config\ConverterInterface $converter
  * @param SchemaLocator $schemaLocator
  * @param \Magento\Framework\Config\ValidationStateInterface $validationState
  * @param string $fileName
  * @param string $domDocumentClass
  */
 public function __construct(\Magento\Framework\Config\FileResolverInterface $fileResolver, \Magento\Framework\Config\ConverterInterface $converter, SchemaLocator $schemaLocator, \Magento\Framework\Config\ValidationStateInterface $validationState, $fileName = 'config.xml', $domDocumentClass = 'Magento\\Framework\\Config\\Dom')
 {
     $this->_schemaFile = $validationState->isValidated() ? $schemaLocator->getSchema() : null;
     $this->_fileResolver = $fileResolver;
     $this->_converter = $converter;
     $this->_domDocumentClass = $domDocumentClass;
     $this->_fileName = $fileName;
 }
Пример #2
0
 /**
  * @param \Magento\Framework\Config\FileResolverInterface $fileResolver
  * @param \Magento\Framework\Config\ConverterInterface $converter
  * @param SchemaLocator $schemaLocator
  * @param \Magento\Framework\Config\DomFactory $domFactory
  * @param string $fileName
  * @param string $domDocumentClass
  */
 public function __construct(\Magento\Framework\Config\FileResolverInterface $fileResolver, \Magento\Framework\Config\ConverterInterface $converter, SchemaLocator $schemaLocator, \Magento\Framework\Config\DomFactory $domFactory, $fileName = 'config.xml')
 {
     $this->_schemaFile = $schemaLocator->getSchema();
     $this->_fileResolver = $fileResolver;
     $this->_converter = $converter;
     $this->domFactory = $domFactory;
     $this->_fileName = $fileName;
 }