Skip to content

Commit

Permalink
magento#10045 add item resolver configs, sitemap config, clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkwiecinski committed Jul 24, 2017
1 parent 878e361 commit b6ddaa7
Show file tree
Hide file tree
Showing 29 changed files with 1,084 additions and 729 deletions.
29 changes: 29 additions & 0 deletions app/code/Magento/Sitemap/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@
*/
namespace Magento\Sitemap\Helper;

use Magento\Sitemap\Model\ItemResolver\CategoryConfigReader;
use Magento\Sitemap\Model\ItemResolver\CmsPageConfigReader;
use Magento\Sitemap\Model\ItemResolver\ProductConfigReader;
use Magento\Sitemap\Model\SitemapConfigReader;
use Magento\Store\Model\ScopeInterface;

/**
* @deprecated
*/
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{
/**
Expand Down Expand Up @@ -68,6 +75,8 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
*
* @param int $storeId
* @return int
* @deprecated
* @see SitemapConfigReader::getMaximumLinesNumber()
*/
public function getMaximumLinesNumber($storeId)
{
Expand All @@ -83,6 +92,8 @@ public function getMaximumLinesNumber($storeId)
*
* @param int $storeId
* @return int
* @deprecated
* @see SitemapConfigReader::getMaximumFileSize()
*/
public function getMaximumFileSize($storeId)
{
Expand All @@ -98,6 +109,8 @@ public function getMaximumFileSize($storeId)
*
* @param int $storeId
* @return string
* @deprecated
* @see CategoryConfigReader::getChangeFrequency()
*/
public function getCategoryChangefreq($storeId)
{
Expand All @@ -113,6 +126,8 @@ public function getCategoryChangefreq($storeId)
*
* @param int $storeId
* @return string
* @deprecated
* @see ProductConfigReader::getChangeFrequency()
*/
public function getProductChangefreq($storeId)
{
Expand All @@ -128,6 +143,8 @@ public function getProductChangefreq($storeId)
*
* @param int $storeId
* @return string
* @deprecated
* @see CmsPageConfigReader::getChangeFrequency()
*/
public function getPageChangefreq($storeId)
{
Expand All @@ -143,6 +160,8 @@ public function getPageChangefreq($storeId)
*
* @param int $storeId
* @return string
* @deprecated
* @see CategoryConfigReader::getPriority()
*/
public function getCategoryPriority($storeId)
{
Expand All @@ -158,6 +177,8 @@ public function getCategoryPriority($storeId)
*
* @param int $storeId
* @return string
* @deprecated
* @see ProductConfigReader::getPriority()
*/
public function getProductPriority($storeId)
{
Expand All @@ -173,6 +194,8 @@ public function getProductPriority($storeId)
*
* @param int $storeId
* @return string
* @deprecated
* @see CmsPageConfigReader::getPriority()
*/
public function getPagePriority($storeId)
{
Expand All @@ -188,6 +211,8 @@ public function getPagePriority($storeId)
*
* @param int $storeId
* @return int
* @deprecated
* @see SitemapConfigReader::getEnableSubmissionRobots()
*/
public function getEnableSubmissionRobots($storeId)
{
Expand All @@ -203,6 +228,8 @@ public function getEnableSubmissionRobots($storeId)
*
* @param int $storeId
* @return string
* @deprecated
* @see SitemapConfigReader::getProductImageIncludePolicy()
*/
public function getProductImageIncludePolicy($storeId)
{
Expand All @@ -217,6 +244,8 @@ public function getProductImageIncludePolicy($storeId)
* Get list valid paths for generate a sitemap XML file
*
* @return string[]
* @deprecated
* @see SitemapConfigReader::getValidPaths()
*/
public function getValidPaths()
{
Expand Down
109 changes: 0 additions & 109 deletions app/code/Magento/Sitemap/Model/CategorySitemapItemResolver.php

This file was deleted.

110 changes: 0 additions & 110 deletions app/code/Magento/Sitemap/Model/CmsPageSitemapItemResolver.php

This file was deleted.

Loading

0 comments on commit b6ddaa7

Please sign in to comment.