Xác thực Magento 2 xml


30

Trong một thời gian, Magento 2 đã có cách để xác thực (và tự động hoàn thành) bất kỳ xml nào bằng cách sử dụng tệp XSD.
Ví dụ module.xmltrông như thế này:

<?xml version="1.0">
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
    ....
</config>

nhưng bây giờ module.xmltrông như thế này:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    ....
</config>

vì vậy xsi:noNamespaceSchemaLocationthuộc tính chứa urn:magento:framework:.

Tôi biết rằng điều này không liên quan gì đến việc xác thực phía máy chủ của xmls. Cái này vẫn hoạt động.
Nhưng tôi có thể làm gì để lấy lại xác thực trong IDE của mình (PHPStorm trong trường hợp của tôi, nhưng điều đó không quan trọng, nó có thể là bất cứ điều gì khác) để nhận ra đường dẫn đến xsd?
Tôi có nên vẫn sử dụng đường dẫn tương đối cũ trong khi xây dựng các mô-đun của mình không? Hoặc có một cách tốt hơn để làm điều đó?


1
alankent.me/2015/10/07/ - Tôi nghĩ điều này có giúp được gì không?
James Anelay - TheExtensionLab

@Marius, tôi không thể thấy câu trả lời của "Tôi có nên sử dụng đường dẫn tương đối cũ trong khi xây dựng các mô-đun của mình không? Hoặc có cách nào tốt hơn để làm điều đó không?"
Mohit Kumar Arora

Câu trả lời:


48

Kiểm tra các bản cập nhật cho GitHub hôm nay, Magento 2 đã giới thiệu lệnh mới để tự động tạo tất cả các độ phân giải URN cho PhpStorm.

Để dùng nó:

  • cài đặt Magento trên cùng một máy với PhpStorm
  • đi đến thư mục gốc
  • thực thi lệnh bin/magento dev:urn-catalog:generate .idea/misc.xmltrong đó .idea/misc.xmlđường dẫn đến tệp misc.xml PhpStorm của bạn

Tất cả các URN nên được giải quyết một cách kỳ diệu ngay bây giờ!

Kiểm tra chúng dưới PhpStorm->Preferences -> Languages&Frameworks -> Schemas and DTDs

PhpStorm 9.0 (cửa sổ): File -> Settings -> Languages&Frameworks -> Schemas and DTDs


Nếu Phpstorm không ở trong cùng một máy với mã, tôi nghĩ vẫn an toàn khi sao chép tệp đó ở đâu đó gần mã magento, thực thi lệnh được cung cấp và sau đó sao chép lại vào dev môi trường.
medmek

10

Vì vậy, magento đã thay đổi URI XSD để sử dụng Urns - Chúng cần được cấu hình trong PHP Storm để xác thực lược đồ hoạt động trở lại.

Nguồn: http://alankent.me/2015/10/07/xml-schema-resolution-in-php-storm-with-urns-quick-note/

Mã độ phân giải URN được tích hợp trực tiếp vào Magento. May mắn thay, thật dễ dàng để liên kết URN với các tệp thực trong trang web cục bộ của bạn trong PHP Strom.

Đây là những gì bạn sẽ thấy sau khi tải một phiên bản magento2 mới với urns. Lưu ý rằng URN có màu đỏ vì PHP Storm không biết cách giải quyết nó.

nhập mô tả hình ảnh ở đây

Đặt con trỏ vào URN, sau đó nhấp vào bóng đèn màu đỏ ở bên trái sẽ xuất hiện và chọn Cài đặt thủ công bên ngoài Tài nguyên bên ngoài từ danh sách.

nhập mô tả hình ảnh ở đây

Cuộn xuống danh sách các tệp XSD mà PHP Storm đã tự động định vị và chọn tệp thích hợp. URN màu đỏ bây giờ sẽ được hiển thị bằng màu xanh lục và xác thực XML đã có hiệu lực.


5

Thế hệ URN được hỗ trợ bởi plugin Magento 2 cho PHP Storm và chỉ là một trong nhiều tính năng hữu ích mà nó cung cấp cho các nhà phát triển Magento 2.

Khi plugin được cài đặt trong PHP Storm, hãy truy cập Preferences / Other Settings / Magento2 plugin và nhấp vào Regenerate URN map.


3

Người dùng IDE Eclipse:

(Cập nhật ngày 11 tháng 7 năm 2019 cho Magento 2.3.1)

Ưu điểm:

  • Eclipse sẽ nhận ra đường dẫn đến XSD và tất cả những lợi ích mang lại.

Nhược điểm:

  • Cấu hình là ở một phạm vi không gian làm việc, không phải phạm vi dự án.
  • Thủ công phải thiết lập nó.
  • Nếu Magento thêm XSD mới trong các phiên bản trong tương lai hoặc thay đổi đường dẫn, bạn sẽ phải quản lý các thay đổi này theo cách thủ công.

Hướng dẫn:

  • Sử dụng trình quản lý tệp ưa thích của bạn, điều hướng đến thư mục gốc của không gian làm việc của Eclipse. Nếu trên linux và bạn chỉ đang sử dụng vị trí không gian làm việc mặc định thì rất có thể ~/workspace.
  • Trong thư mục không gian làm việc nhật thực của bạn tìm .metadata/.plugins/org.eclipse.wst.xml.core/user_catalog.xml(nếu không tồn tại, hãy tạo nó)
  • Dán nội dung bên dưới và thay thế "ROOT" bằng đường dẫn thực tế của bạn:

Nguồn:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="urn:magento:framework:Module/etc/module.xsd" uri="file:/ROOT/vendor/magento/framework/Module/etc/module.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/schema.xsd"/>
<uri name="urn:magento:framework:ObjectManager/etc/config.xsd" uri="file:/ROOT/vendor/magento/framework/ObjectManager/etc/config.xsd"/>
<uri name="urn:magento:module:Magento_Webapi:etc/webapi.xsd" uri="file:/ROOT/vendor/magento/module-webapi/etc/webapi.xsd"/>
<uri name="urn:magento:framework:Indexer/etc/indexer.xsd" uri="file:/ROOT/vendor/magento/framework/Indexer/etc/indexer.xsd"/>
<uri name="urn:magento:framework:Mview/etc/mview.xsd" uri="file:/ROOT/vendor/magento/framework/Mview/etc/mview.xsd"/>
<uri name="urn:magento:module:Magento_Cron:etc/crontab.xsd" uri="file:/ROOT/vendor/magento/module-cron/etc/crontab.xsd"/>
<uri name="urn:magento:module:Magento_Customer:etc/address_formats.xsd" uri="file:/ROOT/vendor/magento/module-customer/etc/address_formats.xsd"/>
<uri name="urn:magento:module:Magento_Store:etc/config.xsd" uri="file:/ROOT/vendor/magento/module-store/etc/config.xsd"/>
<uri name="urn:magento:framework:DataObject/etc/fieldset.xsd" uri="file:/ROOT/vendor/magento/framework/DataObject/etc/fieldset.xsd"/>
<uri name="urn:magento:framework:Event/etc/events.xsd" uri="file:/ROOT/vendor/magento/framework/Event/etc/events.xsd"/>
<uri name="urn:magento:framework:Acl/etc/acl.xsd" uri="file:/ROOT/vendor/magento/framework/Acl/etc/acl.xsd"/>
<uri name="urn:magento:framework:Validator/etc/validation.xsd" uri="file:/ROOT/vendor/magento/framework/Validator/etc/validation.xsd"/>
<uri name="urn:magento:framework:Cache/etc/cache.xsd" uri="file:/ROOT/vendor/magento/framework/Cache/etc/cache.xsd"/>
<uri name="urn:magento:module:Magento_Email:etc/email_templates.xsd" uri="file:/ROOT/vendor/magento/module-email/etc/email_templates.xsd"/>
<uri name="urn:magento:framework:App/etc/routes.xsd" uri="file:/ROOT/vendor/magento/framework/App/etc/routes.xsd"/>
<uri name="urn:magento:module:Magento_Backend:etc/menu.xsd" uri="file:/ROOT/vendor/magento/module-backend/etc/menu.xsd"/>
<uri name="urn:magento:module:Magento_Config:etc/system_file.xsd" uri="file:/ROOT/vendor/magento/module-config/etc/system_file.xsd"/>
<uri name="urn:magento:module:Magento_Customer:etc/sections.xsd" uri="file:/ROOT/vendor/magento/module-customer/etc/sections.xsd"/>
<uri name="urn:magento:framework:View/Layout/etc/page_types.xsd" uri="file:/ROOT/vendor/magento/framework/View/Layout/etc/page_types.xsd"/>
<uri name="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd" uri="file:/ROOT/vendor/magento/module-ui/etc/ui_configuration.xsd"/>
<uri name="urn:magento:framework:View/Layout/etc/layout_generic.xsd" uri="file:/ROOT/vendor/magento/framework/View/Layout/etc/layout_generic.xsd"/>
<uri name="urn:magento:framework:View/Layout/etc/page_configuration.xsd" uri="file:/ROOT/vendor/magento/framework/View/Layout/etc/page_configuration.xsd"/>
<uri name="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd" uri="file:/ROOT/vendor/magento/module-catalog/etc/catalog_attributes.xsd"/>
<uri name="urn:magento:module:Magento_Sales:etc/sales.xsd" uri="file:/ROOT/vendor/magento/module-sales/etc/sales.xsd"/>
<uri name="urn:magento:module:Magento_Catalog:etc/product_types.xsd" uri="file:/ROOT/vendor/magento/module-catalog/etc/product_types.xsd"/>
<uri name="urn:magento:module:Magento_Sales:etc/pdf_file.xsd" uri="file:/ROOT/vendor/magento/module-sales/etc/pdf_file.xsd"/>
<uri name="urn:magento:framework:Api/etc/extension_attributes.xsd" uri="file:/ROOT/vendor/magento/framework/Api/etc/extension_attributes.xsd"/>
<uri name="urn:magento:module:Magento_Widget:etc/widget.xsd" uri="file:/ROOT/vendor/magento/module-widget/etc/widget.xsd"/>
<uri name="urn:magento:framework:App/etc/resources.xsd" uri="file:/ROOT/vendor/magento/framework/App/etc/resources.xsd"/>
<uri name="urn:magento:framework:View/Layout/etc/page_layout.xsd" uri="file:/ROOT/vendor/magento/framework/View/Layout/etc/page_layout.xsd"/>
<uri name="urn:magento:framework:Config/etc/view.xsd" uri="file:/ROOT/vendor/magento/framework/Config/etc/view.xsd"/>
<uri name="urn:magento:module:Magento_Cron:etc/cron_groups.xsd" uri="file:/ROOT/vendor/magento/module-cron/etc/cron_groups.xsd"/>
<uri name="urn:magento:module:Magento_WebapiAsync:etc/webapi_async.xsd" uri="file:/ROOT/vendor/magento/module-webapi-async/etc/webapi_async.xsd"/>
<uri name="urn:magento:module:Magento_Eav:etc/eav_attributes.xsd" uri="file:/ROOT/vendor/magento/module-eav/etc/eav_attributes.xsd"/>
<uri name="urn:magento:module:Magento_Catalog:etc/product_options.xsd" uri="file:/ROOT/vendor/magento/module-catalog/etc/product_options.xsd"/>
<uri name="urn:magento:module:Magento_Catalog:etc/product_types_merged.xsd" uri="file:/ROOT/vendor/magento/module-catalog/etc/product_types_merged.xsd"/>
<uri name="urn:magento:module:Magento_Catalog:etc/product_options_merged.xsd" uri="file:/ROOT/vendor/magento/module-catalog/etc/product_options_merged.xsd"/>
<uri name="urn:magento:module:Magento_Directory:etc/zip_codes.xsd" uri="file:/ROOT/vendor/magento/module-directory/etc/zip_codes.xsd"/>
<uri name="urn:magento:module:Magento_Ui:etc/data_source.xsd" uri="file:/ROOT/vendor/magento/module-ui/etc/data_source.xsd"/>
<uri name="urn:magento:module:Magento_Integration:etc/integration/integration.xsd" uri="file:/ROOT/vendor/magento/module-integration/etc/integration/integration.xsd"/>
<uri name="urn:magento:module:Magento_Ui:etc/ui_definition.map.xsd" uri="file:/ROOT/vendor/magento/module-ui/etc/ui_definition.map.xsd"/>
<uri name="urn:magento:module:Magento_Ui:etc/ui_definition.xsd" uri="file:/ROOT/vendor/magento/module-ui/etc/ui_definition.xsd"/>
<uri name="urn:magento:framework:View/PageLayout/etc/layouts.xsd" uri="file:/ROOT/vendor/magento/framework/View/PageLayout/etc/layouts.xsd"/>
<uri name="urn:magento:framework:Config/etc/theme.xsd" uri="file:/ROOT/vendor/magento/framework/Config/etc/theme.xsd"/>
<uri name="urn:magento:module:Magento_Payment:etc/payment.xsd" uri="file:/ROOT/vendor/magento/module-payment/etc/payment.xsd"/>
<uri name="urn:magento:module:Magento_ImportExport:etc/import.xsd" uri="file:/ROOT/vendor/magento/module-import-export/etc/import.xsd"/>
<uri name="urn:magento:module:Magento_ImportExport:etc/import_merged.xsd" uri="file:/ROOT/vendor/magento/module-import-export/etc/import_merged.xsd"/>
<uri name="urn:magento:module:Magento_ImportExport:etc/export_merged.xsd" uri="file:/ROOT/vendor/magento/module-import-export/etc/export_merged.xsd"/>
<uri name="urn:magento:module:Magento_ImportExport:etc/export.xsd" uri="file:/ROOT/vendor/magento/module-import-export/etc/export.xsd"/>
<uri name="urn:magento:framework:Search/etc/search_request.xsd" uri="file:/ROOT/vendor/magento/framework/Search/etc/search_request.xsd"/>
<uri name="urn:magento:framework:Search/etc/search_engine.xsd" uri="file:/ROOT/vendor/magento/framework/Search/etc/search_engine.xsd"/>
<uri name="urn:magento:module:Magento_Analytics:etc/analytics.xsd" uri="file:/ROOT/vendor/magento/module-analytics/etc/analytics.xsd"/>
<uri name="urn:magento:module:Magento_Analytics:etc/reports.xsd" uri="file:/ROOT/vendor/magento/module-analytics/etc/reports.xsd"/>
<uri name="urn:magento:module:Magento_Paypal:etc/rules.xsd" uri="file:/ROOT/vendor/magento/module-paypal/etc/rules.xsd"/>
<uri name="urn:magento:module:Magento_Config:etc/system_include.xsd" uri="file:/ROOT/vendor/magento/module-config/etc/system_include.xsd"/>
<uri name="urn:magento:module:Magento_Logging:etc/logging.xsd" uri="file:/ROOT/vendor/magento/module-logging/etc/logging.xsd"/>
<uri name="urn:magento:module:Magento_PageBuilder:etc/menu_section.xsd" uri="file:/ROOT/vendor/magento/module-page-builder/etc/menu_section.xsd"/>
<uri name="urn:magento:module:Magento_PageBuilder:etc/content_type.xsd" uri="file:/ROOT/vendor/magento/module-page-builder/etc/content_type.xsd"/>
<uri name="urn:magento:module:Magento_WebsiteRestriction:etc/webrestrictions.xsd" uri="file:/ROOT/vendor/magento/module-website-restriction/etc/webrestrictions.xsd"/>
<uri name="urn:magento:framework:/App/etc/routes.xsd" uri="file:/ROOT/vendor/magento/framework//App/etc/routes.xsd"/>
<uri name="urn:magento:module:Magento_Elasticsearch:etc/esconfig.xsd" uri="file:/ROOT/vendor/magento/module-elasticsearch/etc/esconfig.xsd"/>
<uri name="urn:magento:module:Magento_Logging:etc/logging_file.xsd" uri="file:/ROOT/vendor/magento/module-logging/etc/logging_file.xsd"/>
<uri name="urn:magento:module:Magento_GiftRegistry:etc/giftregistry.xsd" uri="file:/ROOT/vendor/magento/module-gift-registry/etc/giftregistry.xsd"/>
<uri name="urn:magento:module:Magento_Payment:etc/error_mapping.xsd" uri="file:/ROOT/vendor/magento/module-payment/etc/error_mapping.xsd"/>
<uri name="urn:magento:module:Klarna_Core:etc/klarna.xsd" uri="file:/ROOT/vendor/klarna/module-core/etc/klarna.xsd"/>
<uri name="urn:magento:module:Magento_VersionsCms:etc/menu_hierarchy.xsd" uri="file:/ROOT/vendor/magento/module-versions-cms/etc/menu_hierarchy.xsd"/>
<uri name="urn:magento:module:Magento_Signifyd:etc/signifyd_payment_mapping.xsd" uri="file:/ROOT/vendor/magento/module-signifyd/etc/signifyd_payment_mapping.xsd"/>
<uri name="urn:magento:framework-message-queue:etc/topology.xsd" uri="file:/ROOT/vendor/magento/framework-message-queue/etc/topology.xsd"/>
<uri name="urn:magento:framework-message-queue:etc/consumer.xsd" uri="file:/ROOT/vendor/magento/framework-message-queue/etc/consumer.xsd"/>
<uri name="urn:magento:framework-foreign-key:etc/constraints.xsd" uri="file:/ROOT/vendor/magento/framework-foreign-key/etc/constraints.xsd"/>
<uri name="urn:magento:module:Magento_AdminGws:etc/admingws.xsd" uri="file:/ROOT/vendor/magento/module-admin-gws/etc/admingws.xsd"/>
<uri name="urn:magento:module:Magento_Persistent:etc/persistent.xsd" uri="file:/ROOT/vendor/magento/module-persistent/etc/persistent.xsd"/>
<uri name="urn:magento:framework-message-queue:etc/publisher.xsd" uri="file:/ROOT/vendor/magento/framework-message-queue/etc/publisher.xsd"/>
<uri name="urn:magento:framework-message-queue:etc/queue.xsd" uri="file:/ROOT/vendor/magento/framework-message-queue/etc/queue.xsd"/>
<uri name="urn:magento:framework:Communication/etc/communication.xsd" uri="file:/ROOT/vendor/magento/framework/Communication/etc/communication.xsd"/>
<uri name="urn:magento:module:Magento_Support:etc/report.xsd" uri="file:/ROOT/vendor/magento/module-support/etc/report.xsd"/>
<uri name="urn:magento:module:Magento_Sales:etc/pdf.xsd" uri="file:/ROOT/vendor/magento/module-sales/etc/pdf.xsd"/>
<uri name="urn:magento:module:Magento_Catalog:etc/product_types_base.xsd" uri="file:/ROOT/vendor/magento/module-catalog/etc/product_types_base.xsd"/>
<uri name="urn:magento:module:Magento_Integration:etc/integration/integration_base.xsd" uri="file:/ROOT/vendor/magento/module-integration/etc/integration/integration_base.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/ui_component.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/ui_component.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/action.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/action.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/actionDelete.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/actionDelete.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/actions.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/actions.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/actionsColumn.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/actionsColumn.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/bookmark.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/bookmark.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/boolean.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/boolean.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/button.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/button.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/checkbox.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/checkbox.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/checkboxset.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/checkboxset.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/colorPicker.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/colorPicker.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/column.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/column.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/columns.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/columns.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/columnsControls.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/columnsControls.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/component.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/component.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/container.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/container.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/dataSource.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/dataSource.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/date.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/date.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/dynamicRows.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/dynamicRows.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/email.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/email.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/exportButton.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/exportButton.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/field.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/field.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/urlInput.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/urlInput.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/fieldset.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/fieldset.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/file.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/file.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/fileUploader.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/fileUploader.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/filterRange.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/filterRange.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/filters.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/filters.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/form.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/form.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/hidden.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/hidden.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/htmlContent.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/htmlContent.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/imageUploader.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/imageUploader.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/input.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/input.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/insertForm.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/insertForm.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/insertListing.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/insertListing.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/listing.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/listing.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/massaction.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/massaction.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/modal.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/modal.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/multiline.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/multiline.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/multiselect.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/multiselect.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/nav.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/nav.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/number.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/number.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/paging.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/paging.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/price.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/price.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/radioset.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/radioset.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/select.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/select.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/selectionsColumn.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/selectionsColumn.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/tab.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/tab.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/text.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/text.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/textarea.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/textarea.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/wysiwyg.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/wysiwyg.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/inlineEditing.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/inlineEditing.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/listingToolbar.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/listingToolbar.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/dataProvider.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/dataProvider.xsd"/>
<uri name="urn:magento:module:Magento_Ui:etc/ui_components.xsd" uri="file:/ROOT/vendor/magento/module-ui/etc/ui_components.xsd"/>
<uri name="urn:magento:framework:Data/etc/argument/types.xsd" uri="file:/ROOT/vendor/magento/framework/Data/etc/argument/types.xsd"/>
<uri name="urn:magento:module:Magento_Ui:view/base/ui_component/etc/definition/ui_settings.xsd" uri="file:/ROOT/vendor/magento/module-ui/view/base/ui_component/etc/definition/ui_settings.xsd"/>
<uri name="urn:magento:framework:View/Layout/etc/elements.xsd" uri="file:/ROOT/vendor/magento/framework/View/Layout/etc/elements.xsd"/>
<uri name="urn:magento:module:Magento_Widget:etc/types.xsd" uri="file:/ROOT/vendor/magento/module-widget/etc/types.xsd"/>
<uri name="urn:magento:framework:View/Layout/etc/head.xsd" uri="file:/ROOT/vendor/magento/framework/View/Layout/etc/head.xsd"/>
<uri name="urn:magento:framework:View/Layout/etc/body.xsd" uri="file:/ROOT/vendor/magento/framework/View/Layout/etc/body.xsd"/>
<uri name="urn:magento:framework:View/Layout/etc/html.xsd" uri="file:/ROOT/vendor/magento/framework/View/Layout/etc/html.xsd"/>
<uri name="urn:magento:framework:Search/etc/requests.xsd" uri="file:/ROOT/vendor/magento/framework/Search/etc/requests.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/name.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/name.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/real/decimal.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/real/decimal.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/real/float.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/real/float.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/real/double.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/real/double.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/integers/integer.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/integers/integer.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/integers/biginteger.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/integers/biginteger.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/integers/smallinteger.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/integers/smallinteger.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/integers/tinyinteger.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/integers/tinyinteger.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/texts/text.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/texts/text.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/texts/longtext.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/texts/longtext.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/texts/mediumtext.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/texts/mediumtext.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/texts/varchar.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/texts/varchar.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/binaries/blob.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/binaries/blob.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/binaries/mediumblob.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/binaries/mediumblob.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/binaries/longblob.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/binaries/longblob.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/binaries/varbinary.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/binaries/varbinary.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/datetime/timestamp.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/datetime/timestamp.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/datetime/datetime.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/datetime/datetime.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/datetime/date.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/datetime/date.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/boolean.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/boolean.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/constraints/foreign.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/constraints/foreign.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/constraints/unique.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/constraints/unique.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/constraints/primary.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/constraints/primary.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/index.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/index.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/column.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/column.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/constraints/constraint.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/constraints/constraint.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/operations.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/operations.xsd"/>
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/types/datetime/default.xsd" uri="file:/ROOT/vendor/magento/framework/Setup/Declaration/Schema/etc/types/datetime/default.xsd"/>
<uri name="urn:magento:framework-message-queue:etc/queue_base.xsd" uri="file:/ROOT/vendor/magento/framework-message-queue/etc/queue_base.xsd"/>
</catalog>

Danh sách trên được tạo bằng lệnh CLI của Magento:

php -f bin/magento dev:urn-catalog:generate urn_mappings.xml

Sau đó chuyển đổi thành định dạng Eclipse mong đợi.

Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookieChính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.