@@ -14,27 +14,21 @@ class SideReview extends \Magento\Framework\View\Element\Template
1414 * Default template to use for review widget
1515 */
1616 const DEFAULT_REVIEW_TEMPLATE = 'widgets/sidereview.phtml ' ;
17- /**
18- * @var \Magento\Framework\App\Config\ScopeConfigInterface
19- */
20- protected $ scopeConfig ;
17+
2118 /**
2219 * Construct
2320 *
2421 * @param \Magento\Framework\View\Element\Template\Context $context
2522 * @param \Swissup\Testimonials\Model\ResourceModel\Data\CollectionFactory $testimonialsCollectionFactory
26- * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
2723 * @param array $data
2824 */
2925 public function __construct (
3026 \Magento \Framework \View \Element \Template \Context $ context ,
3127 \Swissup \Testimonials \Model \ResourceModel \Data \CollectionFactory $ testimonialsCollectionFactory ,
32- \Magento \Framework \App \Config \ScopeConfigInterface $ scopeConfig ,
3328 array $ data = []
3429 ) {
3530 parent ::__construct ($ context , $ data );
3631 $ this ->_testimonialsCollectionFactory = $ testimonialsCollectionFactory ;
37- $ this ->scopeConfig = $ scopeConfig ;
3832 }
3933
4034 public function _construct ()
@@ -67,7 +61,7 @@ public function getListUrl()
6761 }
6862 public function getStoreName ()
6963 {
70- $ storeName = $ this ->scopeConfig ->getValue (
64+ $ storeName = $ this ->_scopeConfig ->getValue (
7165 'general/store_information/name ' ,
7266 \Magento \Store \Model \ScopeInterface::SCOPE_STORE
7367 );
0 commit comments