This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
107 changed files
with
2,204 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions
22
src/module-vsbridge-indexer-catalog/Api/ApplyCategorySlugInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* @package Divante\VsbridgeIndexerCatalog | ||
* @author Agata Firlejczyk <[email protected]> | ||
* @copyright 2019 Divante Sp. z o.o. | ||
* @license See LICENSE_DIVANTE.txt for license details. | ||
*/ | ||
|
||
namespace Divante\VsbridgeIndexerCatalog\Api; | ||
|
||
/** | ||
* Interface ApplyCategorySlugInterface | ||
*/ | ||
interface ApplyCategorySlugInterface | ||
{ | ||
/** | ||
* @param array $category | ||
* | ||
* @return array | ||
*/ | ||
public function execute(array $category); | ||
} |
53 changes: 53 additions & 0 deletions
53
src/module-vsbridge-indexer-catalog/Api/Data/CatalogConfigurationInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
/** | ||
* @package Divante\VsbridgeIndexerCatalog | ||
* @author Agata Firlejczyk <[email protected]> | ||
* @copyright 2019 Divante Sp. z o.o. | ||
* @license See LICENSE_DIVANTE.txt for license details. | ||
*/ | ||
|
||
namespace Divante\VsbridgeIndexerCatalog\Api\Data; | ||
|
||
/** | ||
* Interface CatalogConfigurationInterface | ||
*/ | ||
interface CatalogConfigurationInterface | ||
{ | ||
const CATALOG_SETTINGS_XML_PREFIX = 'vsbridge_indexer_settings/catalog_settings'; | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function useMagentoUrlKeys(); | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function useUrlKeyToGenerateSlug(); | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function syncTierPrices(); | ||
|
||
/** | ||
* @param int $storeId | ||
* | ||
* @return array | ||
*/ | ||
public function getAllowedProductTypes($storeId); | ||
|
||
/** | ||
* | ||
* @return array | ||
* @throws \Exception | ||
*/ | ||
public function getAttributesUsedForSortBy(); | ||
|
||
/** | ||
* @param int $storeId | ||
* | ||
* @return string | ||
*/ | ||
public function getProductListDefaultSortBy($storeId); | ||
} |
19 changes: 19 additions & 0 deletions
19
src/module-vsbridge-indexer-catalog/Api/LoadInventoryInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Divante\VsbridgeIndexerCatalog\Api; | ||
|
||
/** | ||
* Interface LoadInventoryInterface | ||
*/ | ||
interface LoadInventoryInterface | ||
{ | ||
/** | ||
* @param array $indexData | ||
* @param iny $storeId | ||
* | ||
* @return array | ||
*/ | ||
public function execute(array $indexData, int $storeId): array; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/module-vsbridge-indexer-catalog/Api/SlugGeneratorInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* @package Divante\VsbridgeIndexerCatalog | ||
* @author Agata Firlejczyk <[email protected]> | ||
* @copyright 2019 Divante Sp. z o.o. | ||
* @license See LICENSE_DIVANTE.txt for license details. | ||
*/ | ||
|
||
namespace Divante\VsbridgeIndexerCatalog\Api; | ||
|
||
/** | ||
* Interface SlugGeneratorInterface | ||
*/ | ||
interface SlugGeneratorInterface | ||
{ | ||
|
||
/** | ||
* @param string $text | ||
* @param int $id | ||
* | ||
* @return string | ||
*/ | ||
public function generate($text, $id); | ||
} |
29 changes: 29 additions & 0 deletions
29
src/module-vsbridge-indexer-catalog/Console/Command/IndexerReindexCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* @package Divante\VsbridgeIndexerCatalog | ||
* @author Agata Firlejczyk <[email protected]> | ||
* @copyright 2019 Divante Sp. z o.o. | ||
* @license See LICENSE_DIVANTE.txt for license details. | ||
*/ | ||
|
||
namespace Divante\VsbridgeIndexerCatalog\Console\Command; | ||
|
||
use Divante\VsbridgeIndexerCatalog\Model\Indexer\ProductCategoryProcessor; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
|
||
/** | ||
* Class IndexerReindexCommand | ||
*/ | ||
class IndexerReindexCommand extends \Magento\Indexer\Console\Command\IndexerReindexCommand | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
protected function getIndexers(InputInterface $input) | ||
{ | ||
$indexers = parent::getIndexers($input); | ||
unset($indexers[ProductCategoryProcessor::INDEXER_ID]); | ||
|
||
return $indexers; | ||
} | ||
} |
Oops, something went wrong.