From 11f432fd8fb2878de7ed3b1ee25f4814b178e443 Mon Sep 17 00:00:00 2001 From: Dmitry Kologrivov Date: Wed, 21 Oct 2015 17:14:34 +0300 Subject: [PATCH 01/32] PV-5: revert changes for configs --- .../Magento/Catalog}/etc/view.xsd | 2 +- .../ProductVideo/Model/VideoExtractor.php | 2 +- app/code/Magento/ProductVideo/etc/view.xml | 2 +- .../code/Magento}/ProductVideo/etc/view.xsd | 2 +- app/code/Magento/Swatches/etc/view.xml | 2 +- .../adminhtml/Magento/backend/etc/view.xml | 2 +- .../frontend/Magento/blank/etc/view.xml | 2 +- .../frontend/Magento/blank/etc/view.xsd | 57 ---- app/design/frontend/Magento/luma/etc/view.xml | 2 +- app/design/frontend/Magento/luma/etc/view.xsd | 57 ---- .../Magento/Framework/Catalog/README.md | 1 - .../Magento/Framework/Catalog/etc/view.xsd | 57 ---- .../Magento/Framework/Config/View.php | 13 +- .../Magento/Framework/Config/etc/view.xsd | 68 ++++- .../Magento/Framework/ProductVideo/README.md | 1 - .../Magento/Framework/Validator/Config.php | 2 +- .../Framework/View/PageLayout/Config.php | 2 +- .../Magento/Framework/View/Xsd/Reader.php | 248 ------------------ 18 files changed, 81 insertions(+), 441 deletions(-) rename app/{design/adminhtml/Magento/backend => code/Magento/Catalog}/etc/view.xsd (97%) rename {lib/internal/Magento/Framework => app/code/Magento}/ProductVideo/etc/view.xsd (96%) delete mode 100644 app/design/frontend/Magento/blank/etc/view.xsd delete mode 100644 app/design/frontend/Magento/luma/etc/view.xsd delete mode 100644 lib/internal/Magento/Framework/Catalog/README.md delete mode 100644 lib/internal/Magento/Framework/Catalog/etc/view.xsd delete mode 100644 lib/internal/Magento/Framework/ProductVideo/README.md delete mode 100644 lib/internal/Magento/Framework/View/Xsd/Reader.php diff --git a/app/design/adminhtml/Magento/backend/etc/view.xsd b/app/code/Magento/Catalog/etc/view.xsd similarity index 97% rename from app/design/adminhtml/Magento/backend/etc/view.xsd rename to app/code/Magento/Catalog/etc/view.xsd index a695016f03565..670c6f56dc850 100644 --- a/app/design/adminhtml/Magento/backend/etc/view.xsd +++ b/app/code/Magento/Catalog/etc/view.xsd @@ -20,7 +20,7 @@ - + diff --git a/app/code/Magento/ProductVideo/Model/VideoExtractor.php b/app/code/Magento/ProductVideo/Model/VideoExtractor.php index be97959b6df52..aa9267e5a324e 100644 --- a/app/code/Magento/ProductVideo/Model/VideoExtractor.php +++ b/app/code/Magento/ProductVideo/Model/VideoExtractor.php @@ -12,7 +12,7 @@ class VideoExtractor implements \Magento\Framework\View\Xsd\Media\TypeDataExtrac /** * Media Entry type code */ - const MEDIA_TYPE_CODE = 'image'; + const MEDIA_TYPE_CODE = 'video'; /** * Extract configuration data of videos from the DOM structure diff --git a/app/code/Magento/ProductVideo/etc/view.xml b/app/code/Magento/ProductVideo/etc/view.xml index 3a09480fc4c57..f5ce5d81d6ff7 100644 --- a/app/code/Magento/ProductVideo/etc/view.xml +++ b/app/code/Magento/ProductVideo/etc/view.xml @@ -5,7 +5,7 @@ * See COPYING.txt for license details. */ --> - +