Skip to content

Commit

Permalink
Merge pull request #533 from magento-south/MAGETWO-38563
Browse files Browse the repository at this point in the history
[South] Customer New Grid
  • Loading branch information
vpelipenko committed Aug 21, 2015
2 parents 5cc709f + 8b0ff1c commit 9a960ca
Show file tree
Hide file tree
Showing 313 changed files with 8,868 additions and 1,643 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function afterDeleteAdvancedPricing(AdvancedPricing $subject)
/**
* Get price indexer
*
* @return \Magento\Indexer\Model\IndexerInterface
* @return \Magento\Framework\Indexer\IndexerInterface
*/
protected function getPriceIndexer()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class ImportTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Magento\Indexer\Model\IndexerInterface |\PHPUnit_Framework_MockObject_MockObject
* @var \Magento\Framework\Indexer\IndexerInterface |\PHPUnit_Framework_MockObject_MockObject
*/
protected $indexer;

Expand All @@ -27,7 +27,7 @@ class ImportTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
$this->indexer = $this->getMockForAbstractClass('\Magento\Indexer\Model\IndexerInterface', [], '', false);
$this->indexer = $this->getMockForAbstractClass('\Magento\Framework\Indexer\IndexerInterface', [], '', false);
$this->import = $this->getMock(
'\Magento\AdvancedPricingImportExport\Model\Indexer\Product\Price\Plugin\Import',
['getPriceIndexer', 'invalidateIndexer'],
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Catalog/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class Category extends \Magento\Catalog\Model\AbstractModel implements
/** @var UrlFinderInterface */
protected $urlFinder;

/** @var \Magento\Indexer\Model\IndexerRegistry */
/** @var \Magento\Framework\Indexer\IndexerRegistry */
protected $indexerRegistry;

/**
Expand Down Expand Up @@ -240,7 +240,7 @@ class Category extends \Magento\Catalog\Model\AbstractModel implements
* @param Indexer\Category\Flat\State $flatState
* @param \Magento\CatalogUrlRewrite\Model\CategoryUrlPathGenerator $categoryUrlPathGenerator
* @param UrlFinderInterface $urlFinder
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
* @param CategoryRepositoryInterface $categoryRepository
* @param \Magento\Framework\Model\Resource\AbstractResource $resource
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
Expand All @@ -264,7 +264,7 @@ public function __construct(
Indexer\Category\Flat\State $flatState,
\Magento\CatalogUrlRewrite\Model\CategoryUrlPathGenerator $categoryUrlPathGenerator,
UrlFinderInterface $urlFinder,
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry,
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry,
CategoryRepositoryInterface $categoryRepository,
\Magento\Framework\Model\Resource\AbstractResource $resource = null,
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Catalog/Model/Indexer/AbstractFlatState.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ abstract class AbstractFlatState
*/
protected $isAvailable;

/** @var \Magento\Indexer\Model\IndexerRegistry */
/** @var \Magento\Framework\Indexer\IndexerRegistry */
protected $indexerRegistry;

/**
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
* @param bool $isAvailable
*/
public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry,
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry,
$isAvailable = false
) {
$this->scopeConfig = $scopeConfig;
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/Catalog/Model/Indexer/Category/AffectCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@
class AffectCache
{
/**
* @var \Magento\Indexer\Model\CacheContext
* @var \Magento\Framework\Indexer\CacheContext
*/
protected $context;

/**
* @param \Magento\Indexer\Model\CacheContext $context
* @param \Magento\Framework\Indexer\CacheContext $context
*/
public function __construct(
\Magento\Indexer\Model\CacheContext $context
\Magento\Framework\Indexer\CacheContext $context
) {
$this->context = $context;
}

/**
* @param \Magento\Indexer\Model\ActionInterface $subject
* @param \Magento\Framework\Indexer\ActionInterface $subject
* @param array $ids
* @return array
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function beforeExecute(\Magento\Indexer\Model\ActionInterface $subject, $ids)
public function beforeExecute(\Magento\Framework\Indexer\ActionInterface $subject, $ids)
{
$this->context->registerEntities(\Magento\Catalog\Model\Category::CACHE_TAG, $ids);
return [$ids];
Expand Down
8 changes: 4 additions & 4 deletions app/code/Magento/Catalog/Model/Indexer/Category/Flat.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Category;

class Flat implements \Magento\Indexer\Model\ActionInterface, \Magento\Framework\Mview\ActionInterface
class Flat implements \Magento\Framework\Indexer\ActionInterface, \Magento\Framework\Mview\ActionInterface
{
/**
* @var \Magento\Catalog\Model\Indexer\Category\Flat\Action\FullFactory
Expand All @@ -17,18 +17,18 @@ class Flat implements \Magento\Indexer\Model\ActionInterface, \Magento\Framework
*/
protected $rowsActionFactory;

/** @var \Magento\Indexer\Model\IndexerRegistry */
/** @var \Magento\Framework\Indexer\IndexerRegistry */
protected $indexerRegistry;

/**
* @param Flat\Action\FullFactory $fullActionFactory
* @param Flat\Action\RowsFactory $rowsActionFactory
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
*/
public function __construct(
Flat\Action\FullFactory $fullActionFactory,
Flat\Action\RowsFactory $rowsActionFactory,
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
) {
$this->fullActionFactory = $fullActionFactory;
$this->rowsActionFactory = $rowsActionFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class StoreGroup
{
/** @var \Magento\Indexer\Model\IndexerRegistry */
/** @var \Magento\Framework\Indexer\IndexerRegistry */
protected $indexerRegistry;

/**
Expand All @@ -16,11 +16,11 @@ class StoreGroup
protected $state;

/**
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
* @param \Magento\Catalog\Model\Indexer\Category\Flat\State $state
*/
public function __construct(
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry,
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry,
\Magento\Catalog\Model\Indexer\Category\Flat\State $state
) {
$this->indexerRegistry = $indexerRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ class Mode extends \Magento\Framework\App\Config\Value
/** @var \Magento\Indexer\Model\Indexer\State */
protected $indexerState;

/** @var \Magento\Indexer\Model\IndexerRegistry */
/** @var \Magento\Framework\Indexer\IndexerRegistry */
protected $indexerRegistry;

/**
* @param \Magento\Framework\Model\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
* @param \Magento\Indexer\Model\Indexer\State $indexerState
* @param \Magento\Framework\Model\Resource\AbstractResource $resource
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
Expand All @@ -30,7 +30,7 @@ public function __construct(
\Magento\Framework\Model\Context $context,
\Magento\Framework\Registry $registry,
\Magento\Framework\App\Config\ScopeConfigInterface $config,
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry,
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry,
\Magento\Indexer\Model\Indexer\State $indexerState,
\Magento\Framework\Model\Resource\AbstractResource $resource = null,
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
Expand Down Expand Up @@ -62,7 +62,7 @@ public function processValue()
if ((bool)$this->getValue() != (bool)$this->getOldValue()) {
if ((bool)$this->getValue()) {
$this->indexerState->loadByIndexer(\Magento\Catalog\Model\Indexer\Category\Flat\State::INDEXER_ID);
$this->indexerState->setStatus(\Magento\Indexer\Model\Indexer\State::STATUS_INVALID);
$this->indexerState->setStatus(\Magento\Framework\Indexer\StateInterface::STATUS_INVALID);
$this->indexerState->save();
} else {
$this->indexerRegistry->get(\Magento\Catalog\Model\Indexer\Category\Flat\State::INDEXER_ID)
Expand Down
8 changes: 4 additions & 4 deletions app/code/Magento/Catalog/Model/Indexer/Category/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Category;

class Product implements \Magento\Indexer\Model\ActionInterface, \Magento\Framework\Mview\ActionInterface
class Product implements \Magento\Framework\Indexer\ActionInterface, \Magento\Framework\Mview\ActionInterface
{
/**
* Indexer ID in configuration
Expand All @@ -22,18 +22,18 @@ class Product implements \Magento\Indexer\Model\ActionInterface, \Magento\Framew
*/
protected $rowsActionFactory;

/** @var \Magento\Indexer\Model\IndexerRegistry */
/** @var \Magento\Framework\Indexer\IndexerRegistry */
protected $indexerRegistry;

/**
* @param Product\Action\FullFactory $fullActionFactory
* @param Product\Action\RowsFactory $rowsActionFactory
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
*/
public function __construct(
Product\Action\FullFactory $fullActionFactory,
Product\Action\RowsFactory $rowsActionFactory,
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
) {
$this->fullActionFactory = $fullActionFactory;
$this->rowsActionFactory = $rowsActionFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

class StoreGroup
{
/** @var \Magento\Indexer\Model\IndexerRegistry */
/** @var \Magento\Framework\Indexer\IndexerRegistry */
protected $indexerRegistry;

/**
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
*/
public function __construct(\Magento\Indexer\Model\IndexerRegistry $indexerRegistry)
public function __construct(\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry)
{
$this->indexerRegistry = $indexerRegistry;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Category\Product;

class Processor extends \Magento\Indexer\Model\Indexer\AbstractProcessor
class Processor extends \Magento\Framework\Indexer\AbstractProcessor
{
/**
* Indexer ID
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/Catalog/Model/Indexer/Product/AffectCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@
class AffectCache
{
/**
* @var \Magento\Indexer\Model\CacheContext $context
* @var \Magento\Framework\Indexer\CacheContext $context
*/
protected $context;

/**
* @param \Magento\Indexer\Model\CacheContext $context
* @param \Magento\Framework\Indexer\CacheContext $context
*/
public function __construct(
\Magento\Indexer\Model\CacheContext $context
\Magento\Framework\Indexer\CacheContext $context
) {
$this->context = $context;
}

/**
* @param \Magento\Indexer\Model\ActionInterface $subject
* @param \Magento\Framework\Indexer\ActionInterface $subject
* @param array $ids
* @return array
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function beforeExecute(\Magento\Indexer\Model\ActionInterface $subject, $ids)
public function beforeExecute(\Magento\Framework\Indexer\ActionInterface $subject, $ids)
{
$this->context->registerEntities(\Magento\Catalog\Model\Product::CACHE_TAG, $ids);
return [$ids];
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/Model/Indexer/Product/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class Category extends \Magento\Catalog\Model\Indexer\Category\Product
/**
* @param \Magento\Catalog\Model\Indexer\Category\Product\Action\FullFactory $fullActionFactory
* @param Category\Action\RowsFactory $rowsActionFactory
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
*/
public function __construct(
\Magento\Catalog\Model\Indexer\Category\Product\Action\FullFactory $fullActionFactory,
Category\Action\RowsFactory $rowsActionFactory,
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
) {
parent::__construct($fullActionFactory, $rowsActionFactory, $indexerRegistry);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Product\Category;

class Processor extends \Magento\Indexer\Model\Indexer\AbstractProcessor
class Processor extends \Magento\Framework\Indexer\AbstractProcessor
{
/**
* Indexer ID
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/Indexer/Product/Eav.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Product;

class Eav implements \Magento\Indexer\Model\ActionInterface, \Magento\Framework\Mview\ActionInterface
class Eav implements \Magento\Framework\Indexer\ActionInterface, \Magento\Framework\Mview\ActionInterface
{
/**
* @var \Magento\Catalog\Model\Indexer\Product\Eav\Action\Row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Product\Eav;

class Processor extends \Magento\Indexer\Model\Indexer\AbstractProcessor
class Processor extends \Magento\Framework\Indexer\AbstractProcessor
{
/**
* Indexer ID
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/Indexer/Product/Flat.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Product;

class Flat implements \Magento\Indexer\Model\ActionInterface, \Magento\Framework\Mview\ActionInterface
class Flat implements \Magento\Framework\Indexer\ActionInterface, \Magento\Framework\Mview\ActionInterface
{
/**
* @var \Magento\Catalog\Model\Indexer\Product\Flat\Action\Row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Product\Flat;

class Processor extends \Magento\Indexer\Model\Indexer\AbstractProcessor
class Processor extends \Magento\Framework\Indexer\AbstractProcessor
{
/**
* Indexer ID
Expand All @@ -18,11 +18,11 @@ class Processor extends \Magento\Indexer\Model\Indexer\AbstractProcessor
protected $_state;

/**
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
* @param State $state
*/
public function __construct(
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry,
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry,
\Magento\Catalog\Model\Indexer\Product\Flat\State $state
) {
parent::__construct($indexerRegistry);
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/Model/Indexer/Product/Flat/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class State extends \Magento\Catalog\Model\Indexer\AbstractFlatState

/**
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
* @param \Magento\Indexer\Model\IndexerRegistry $indexerRegistry
* @param \Magento\Framework\Indexer\IndexerRegistry $indexerRegistry
* @param \Magento\Catalog\Helper\Product\Flat\Indexer $flatIndexerHelper
* @param bool $isAvailable
*/
public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
\Magento\Indexer\Model\IndexerRegistry $indexerRegistry,
\Magento\Framework\Indexer\IndexerRegistry $indexerRegistry,
\Magento\Catalog\Helper\Product\Flat\Indexer $flatIndexerHelper,
$isAvailable = false
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function processValue()
if ((bool)$this->getValue() != (bool)$this->getOldValue()) {
if ((bool)$this->getValue()) {
$this->indexerState->loadByIndexer(\Magento\Catalog\Model\Indexer\Product\Flat\Processor::INDEXER_ID);
$this->indexerState->setStatus(\Magento\Indexer\Model\Indexer\State::STATUS_INVALID);
$this->indexerState->setStatus(\Magento\Framework\Indexer\StateInterface::STATUS_INVALID);
$this->indexerState->save();
} else {
$this->_productFlatIndexerProcessor->getIndexer()->setScheduled(false);
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/Indexer/Product/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Indexer\Product;

class Price implements \Magento\Indexer\Model\ActionInterface, \Magento\Framework\Mview\ActionInterface
class Price implements \Magento\Framework\Indexer\ActionInterface, \Magento\Framework\Mview\ActionInterface
{
/**
* @var \Magento\Catalog\Model\Indexer\Product\Price\Action\Row
Expand Down
Loading

0 comments on commit 9a960ca

Please sign in to comment.