di.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <preference for="Magento\Mtf\Console\CommandListInterface" type="Magento\Mtf\Console\CommandList" />
  10. <preference for="Magento\Mtf\Util\Command\File\ExportInterface" type="Magento\Mtf\Util\Command\File\Export" />
  11. <preference for="Magento\Mtf\Util\Command\File\Export\ReaderInterface" type="Magento\Mtf\Util\Command\File\Export\Reader" />
  12. <type name="Magento\Mtf\Util\Command\File\Export" shared="false" />
  13. <virtualType name="Magento\Mtf\Config\SchemaLocator\Config" type="Magento\Mtf\Config\SchemaLocator">
  14. <arguments>
  15. <argument name="schemaPath" xsi:type="string">etc/config.xsd</argument>
  16. </arguments>
  17. </virtualType>
  18. <type name="Magento\Mtf\Util\Protocol\CurlTransport\WebapiDecorator" shared="true" />
  19. <type name="Magento\Mtf\Console\CommandList">
  20. <arguments>
  21. <argument name="commands" xsi:type="array">
  22. <item name="check-magento-storefront" xsi:type="object">Magento\Mtf\Troubleshooting\StorefrontAnalyzer</item>
  23. <item name="check-phpunit-config-file" xsi:type="object">Magento\Mtf\Troubleshooting\PhpUnitAnalyzer</item>
  24. <item name="check-magento-admin" xsi:type="object">Magento\Mtf\Troubleshooting\AdminAnalyzer</item>
  25. <item name="apply-magento-configuration" xsi:type="object">Magento\Mtf\Troubleshooting\Configuration</item>
  26. <item name="check-selenium-session-connection" xsi:type="object">Magento\Mtf\Troubleshooting\SeleniumSessionAnalyzer</item>
  27. <item name="generate-static-classes" xsi:type="object">Magento\Mtf\Troubleshooting\StaticClassesGenerator</item>
  28. <item name="check-config-valid" xsi:type="object">Magento\Mtf\Troubleshooting\ConfigAnalyzer</item>
  29. <item name="check-htaccess" xsi:type="object">Magento\Mtf\Troubleshooting\HtaccessAnalyzer</item>
  30. <item name="check-all" xsi:type="object">Magento\Mtf\Troubleshooting\GlobalAnalyzer</item>
  31. </argument>
  32. </arguments>
  33. </type>
  34. <type name="Magento\Mtf\Troubleshooting\GlobalAnalyzer">
  35. <arguments>
  36. <argument name="commandList" xsi:type="array">
  37. <item name="0" xsi:type="object">Magento\Mtf\Troubleshooting\PhpUnitAnalyzer</item>
  38. <item name="1" xsi:type="object">Magento\Mtf\Troubleshooting\StorefrontAnalyzer</item>
  39. <item name="2" xsi:type="object">Magento\Mtf\Troubleshooting\ConfigAnalyzer</item>
  40. <item name="3" xsi:type="object">Magento\Mtf\Troubleshooting\AdminAnalyzer</item>
  41. <item name="4" xsi:type="object">Magento\Mtf\Troubleshooting\Configuration</item>
  42. <item name="5" xsi:type="object">Magento\Mtf\Troubleshooting\HtaccessAnalyzer</item>
  43. <item name="6" xsi:type="object">Magento\Mtf\Troubleshooting\StaticClassesGenerator</item>
  44. <item name="7" xsi:type="object">Magento\Mtf\Troubleshooting\SeleniumSessionAnalyzer</item>
  45. </argument>
  46. </arguments>
  47. </type>
  48. <type name="Magento\Mtf\Troubleshooting\ConfigAnalyzer">
  49. <arguments>
  50. <argument name="configXml" xsi:type="object">Magento\Mtf\Util\Troubleshooting\GlobalConfig</argument>
  51. <argument name="configXmlDist" xsi:type="object">Magento\Mtf\Util\Troubleshooting\GlobalConfigDist</argument>
  52. </arguments>
  53. </type>
  54. <virtualType name="Magento\Mtf\Util\Troubleshooting\Config" type="Magento\Mtf\Config\Reader\Filesystem">
  55. <arguments>
  56. <argument name="fileResolver" xsi:type="object">Magento\Mtf\Config\FileResolver\Primary</argument>
  57. <argument name="converter" xsi:type="object">Magento\Mtf\Config\Converter</argument>
  58. <argument name="schemaLocator" xsi:type="object">Magento\Mtf\Config\SchemaLocator\Config</argument>
  59. <argument name="idAttributes" xsi:type="array">
  60. <item name="/config" xsi:type="string">scope</item>
  61. <item name="/config/server/item" xsi:type="string">name</item>
  62. </argument>
  63. <argument name="fileName" xsi:type="string">config.xml</argument>
  64. <argument name="defaultScope" xsi:type="string">etc</argument>
  65. </arguments>
  66. </virtualType>
  67. <virtualType name="Magento\Mtf\Util\Troubleshooting\GlobalConfig" type="Magento\Mtf\Config\Data">
  68. <arguments>
  69. <argument name="reader" xsi:type="object">Magento\Mtf\Util\Troubleshooting\Config</argument>
  70. </arguments>
  71. </virtualType>
  72. <virtualType name="Magento\Mtf\Util\Troubleshooting\ConfigDist" type="Magento\Mtf\Config\Reader\Filesystem">
  73. <arguments>
  74. <argument name="fileResolver" xsi:type="object">Magento\Mtf\Config\FileResolver\ScopeConfig</argument>
  75. <argument name="converter" xsi:type="object">Magento\Mtf\Config\Converter</argument>
  76. <argument name="schemaLocator" xsi:type="object">Magento\Mtf\Config\SchemaLocator\Config</argument>
  77. <argument name="idAttributes" xsi:type="array">
  78. <item name="/config" xsi:type="string">scope</item>
  79. <item name="/config/server/item" xsi:type="string">name</item>
  80. </argument>
  81. <argument name="fileName" xsi:type="string">config.xml.dist</argument>
  82. <argument name="defaultScope" xsi:type="string">etc</argument>
  83. </arguments>
  84. </virtualType>
  85. <virtualType name="Magento\Mtf\Util\Troubleshooting\GlobalConfigDist" type="Magento\Mtf\Config\Data">
  86. <arguments>
  87. <argument name="reader" xsi:type="object">Magento\Mtf\Util\Troubleshooting\ConfigDist</argument>
  88. </arguments>
  89. </virtualType>
  90. <type name="Magento\Mtf\Util\Command\File\Export\Reader">
  91. <arguments>
  92. <argument name="template" xsi:type="string">\w*?\.csv</argument>
  93. </arguments>
  94. </type>
  95. <virtualType name="Magento\Mtf\Util\Command\File\Export\ProductReader" type="Magento\Mtf\Util\Command\File\Export\Reader">
  96. <arguments>
  97. <argument name="template" xsi:type="string">catalog_product.*?\.csv</argument>
  98. </arguments>
  99. </virtualType>
  100. <virtualType name="Magento\Mtf\Util\Command\File\Export\CustomerReader" type="Magento\Mtf\Util\Command\File\Export\Reader">
  101. <arguments>
  102. <argument name="template" xsi:type="string">customer.*?\.csv</argument>
  103. </arguments>
  104. </virtualType>
  105. </config>