Skip to content

Commit

Permalink
Fixes Smile-SA#3030 deprecated access to an undefined property (2.10.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbayet committed Sep 5, 2023
1 parent f82f369 commit 0ef164f
Show file tree
Hide file tree
Showing 16 changed files with 89 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ class DefaultProvider implements ProviderInterface
*/
private $cacheLifeTime;

/**
* @var array
*/
private $functions;

/**
* Provider constructor.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ class Preview
*/
private $optimizer;

/**
* @var ApplierListFactory
*/
private $applierListFactory;

/**
* @var ContainerConfigurationInterface
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
*/
class ResultsBuilder
{
/**
* @var \Magento\Framework\Search\SearchEngineInterface
*/
private $searchEngine;

/**
* @var RequestBuilder
*/
private $requestBuilder;

/**
* ResultsBuilder constructor.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class FrontPlugin
*/
private $booleanSource;

/**
* @var Registry
*/
private $coreRegistry;

/**
* @var \Smile\ElasticsuiteCatalog\Model\Attribute\Source\FilterSortOrder
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ class AttributeData extends AbstractAttributeData implements DatasourceInterface
*/
private $forbiddenChildrenAttributes = [];

/**
* @var boolean
*/
private $isIndexingChildProductSkuEnabled;

/**
* Constructor
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ class ReaderPlugin
*/
const XML_CATEGORY_NAME_WEIGHT = 'smile_elasticsuite_catalogsearch_settings/catalogsearch/category_name_weight';

/**
* @var ScopeConfigInterface
*/
private $scopeConfig;

/**
* ConfigPlugin constructor.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
*/
class AbstractIndexerPlugin
{
/**
* @var \Magento\Framework\Indexer\IndexerRegistry
*/
private $indexerRegistry;

/**
* @var \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Indexer\Fulltext\Action\Full
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class Provider
*/
private $searchEngine;

/**
* @var \Smile\ElasticsuiteCore\Search\RequestInterface
*/
private $request;

/**
* @var array
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ class ComposerInformation extends \Magento\Framework\Composer\ComposerInformatio
*/
private $locker;

/**
* @var ComposerFactory
*/
private $composerFactory;

/**
* @param \Magento\Framework\Composer\ComposerFactory $composerFactory Composer Factory
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class ContainerStore
*/
protected $containerReader;

/**
* @var StoreManagerInterface
*/
protected $storeManager;

/**
* Constructor
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class DocumentFactory
*/
private $entityMetadata;

/**
* @var ObjectManagerInterface
*/
private $objectManager;

/**
* @var string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class Histogram extends AbstractBucket
*/
private $minDocCount;

/**
* @var array
*/
private $extendedBounds;

/**
* Constructor.
*
Expand Down
5 changes: 5 additions & 0 deletions src/module-elasticsuite-core/Setup/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
*/
class Validator implements ValidatorInterface
{
/**
* @var ClientInterface
*/
private $client;

/**
* Validator constructor.
*
Expand Down
5 changes: 5 additions & 0 deletions src/module-elasticsuite-tracker/Cron/CleanTrackingData.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class CleanTrackingData
*/
private $indexManager;

/**
* @var \Smile\ElasticsuiteTracker\Helper\Data
*/
private $helper;

/**
* Constructor.
*
Expand Down
20 changes: 4 additions & 16 deletions src/module-elasticsuite-tracker/Model/IndexResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,19 @@ class IndexResolver
private $indices = [];

/**
* @var \Smile\ElasticsuiteCore\Api\Index\IndexInterfaceFactory
* @var IndexManager
*/
private $indexFactory;

/**
* @var \Smile\ElasticsuiteCore\Api\Index\IndexSettingsInterface
*/
private $indexSettings;

private $indexManager;

/**
* Constructor.
*
* @param \Smile\ElasticsuiteCore\Api\Index\IndexSettingsInterface $indexSettings Index settings.
* @param \Smile\ElasticsuiteCore\Api\Index\IndexInterfaceFactory $indexFactory Index factory.
* @param \Smile\ElasticsuiteTracker\Model\IndexManager $indexManager Index Manager.
* @param \Smile\ElasticsuiteTracker\Model\IndexManager $indexManager Index Manager.
*/
public function __construct(
\Smile\ElasticsuiteCore\Api\Index\IndexSettingsInterface $indexSettings,
\Smile\ElasticsuiteCore\Api\Index\IndexInterfaceFactory $indexFactory,
IndexManager $indexManager
) {
$this->indexFactory = $indexFactory;
$this->indexSettings = $indexSettings;
$this->indexManager = $indexManager;
$this->indexManager = $indexManager;
}

/**
Expand Down
11 changes: 10 additions & 1 deletion src/module-elasticsuite-virtual-category/Model/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\DataObject;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\UrlInterface;
use Magento\Store\Model\ScopeInterface;
use Magento\Store\Model\StoreManagerInterface;
use Magento\UrlRewrite\Model\UrlFinderInterface;
Expand Down Expand Up @@ -66,6 +67,11 @@ class Url
*/
private $urlFinder;

/**
* @var UrlInterface
*/
private $urlBuilder;

/**
* @var VirtualCategoryRoot
*/
Expand All @@ -78,20 +84,23 @@ class Url
* @param StoreManagerInterface $storeManager Store Manager Interface
* @param CategoryCollectionFactory $categoryCollectionFactory Category Collection Factory
* @param UrlFinderInterface $urlFinder URL Finder
* @param UrlInterface $urlBuilder URL Builder
* @param VirtualCategoryRoot $virtualCategoryRoot Virtual Category Root model
*/
public function __construct(
ScopeConfigInterface $scopeConfig,
StoreManagerInterface $storeManager,
CategoryCollectionFactory $categoryCollectionFactory,
UrlFinderInterface $urlFinder,
UrlInterface $urlBuilder,
VirtualCategoryRoot $virtualCategoryRoot
) {
$this->scopeConfig = $scopeConfig;
$this->storeManager = $storeManager;
$this->categoryCollectionFactory = $categoryCollectionFactory;
$this->urlFinder = $urlFinder;
$this->virtualCategoryRoot = $virtualCategoryRoot;
$this->urlBuilder = $urlBuilder;
$this->virtualCategoryRoot = $virtualCategoryRoot;
}

/**
Expand Down

0 comments on commit 0ef164f

Please sign in to comment.