File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ class LoadDesignPlugin
2121 /**
2222 * @var DesignLoader
2323 */
24- protected $ _designLoader ;
24+ private $ designLoader ;
2525
2626 /**
2727 * @var MessageManagerInterface
2828 */
29- protected $ messageManager ;
29+ private $ messageManager ;
3030
3131 /**
3232 * @param DesignLoader $designLoader
@@ -36,7 +36,7 @@ public function __construct(
3636 DesignLoader $ designLoader ,
3737 MessageManagerInterface $ messageManager
3838 ) {
39- $ this ->_designLoader = $ designLoader ;
39+ $ this ->designLoader = $ designLoader ;
4040 $ this ->messageManager = $ messageManager ;
4141 }
4242
@@ -50,7 +50,7 @@ public function __construct(
5050 public function beforeExecute (ActionInterface $ subject )
5151 {
5252 try {
53- $ this ->_designLoader ->load ();
53+ $ this ->designLoader ->load ();
5454 } catch (LocalizedException $ e ) {
5555 if ($ e ->getPrevious () instanceof ValidationException) {
5656 /** @var MessageInterface $message */
Original file line number Diff line number Diff line change 66namespace Magento \Framework \App \Test \Unit \Action \Plugin ;
77
88use Magento \Framework \App \Action \Action ;
9- use Magento \Framework \App \Action \Plugin \LoadDesignPlugin ;
109use Magento \Framework \App \ActionInterface ;
1110use Magento \Framework \Message \ManagerInterface ;
1211use Magento \Framework \View \DesignLoader ;
12+ use Magento \Theme \Plugin \LoadDesignPlugin ;
1313use PHPUnit \Framework \MockObject \MockObject ;
1414use PHPUnit \Framework \TestCase ;
1515
You can’t perform that action at this time.
0 commit comments