From 64de88b794569d1f49d908ab11f7f0baac36ed85 Mon Sep 17 00:00:00 2001 From: BlackEagle Date: Tue, 21 Feb 2017 16:46:40 +0100 Subject: [PATCH] makes $layerResolver protected in Category view When you *need* to overwrite this View controller but want to inherit since most of the functionality is exactly the same you have access to everything but the $layerResolver which is kind of annoying. Its also pointless to need to copy the constructor to your child class just because of this. So make $layerResolver protected. Signed-off-by: BlackEagle --- app/code/Magento/Catalog/Controller/Category/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Catalog/Controller/Category/View.php b/app/code/Magento/Catalog/Controller/Category/View.php index cbe2bf3e27adf..995972a5b0280 100644 --- a/app/code/Magento/Catalog/Controller/Category/View.php +++ b/app/code/Magento/Catalog/Controller/Category/View.php @@ -62,7 +62,7 @@ class View extends \Magento\Framework\App\Action\Action * * @var Resolver */ - private $layerResolver; + protected $layerResolver; /** * @var CategoryRepositoryInterface