9
9
use Magento \Framework \App \Area ;
10
10
use Magento \Framework \App \Cache ;
11
11
use Magento \Framework \App \MaintenanceMode ;
12
- use Magento \Framework \App \State ;
12
+ use Magento \Framework \App \State \ CleanupFiles ;
13
13
use Magento \Framework \Composer \ComposerInformation ;
14
14
use Magento \Framework \Composer \DependencyChecker ;
15
15
use Magento \Framework \Composer \Remove ;
@@ -89,13 +89,6 @@ class ThemeUninstallCommand extends Command
89
89
*/
90
90
private $ themeProvider ;
91
91
92
- /**
93
- * Application States
94
- *
95
- * @var State
96
- */
97
- private $ appState ;
98
-
99
92
/**
100
93
* System cache model
101
94
*
@@ -106,7 +99,7 @@ class ThemeUninstallCommand extends Command
106
99
/**
107
100
* Cleaning up application state service
108
101
*
109
- * @var State\ CleanupFiles
102
+ * @var CleanupFiles
110
103
*/
111
104
private $ cleanupFiles ;
112
105
@@ -121,29 +114,27 @@ class ThemeUninstallCommand extends Command
121
114
* Constructor
122
115
*
123
116
* @param Cache $cache
124
- * @param State\ CleanupFiles $cleanupFiles
117
+ * @param CleanupFiles $cleanupFiles
125
118
* @param ComposerInformation $composer
126
119
* @param MaintenanceMode $maintenanceMode
127
120
* @param Filesystem $filesystem
128
121
* @param DependencyChecker $dependencyChecker
129
122
* @param Collection $themeCollection
130
123
* @param ThemeProvider $themeProvider
131
124
* @param Remove $remove
132
- * @param State $appState
133
125
* @param BackupRollbackFactory $backupRollbackFactory
134
126
* @throws LocalizedException
135
127
*/
136
128
public function __construct (
137
129
Cache $ cache ,
138
- State \ CleanupFiles $ cleanupFiles ,
130
+ CleanupFiles $ cleanupFiles ,
139
131
ComposerInformation $ composer ,
140
132
MaintenanceMode $ maintenanceMode ,
141
133
Filesystem $ filesystem ,
142
134
DependencyChecker $ dependencyChecker ,
143
135
Collection $ themeCollection ,
144
136
ThemeProvider $ themeProvider ,
145
137
Remove $ remove ,
146
- State $ appState ,
147
138
BackupRollbackFactory $ backupRollbackFactory
148
139
) {
149
140
$ this ->cache = $ cache ;
@@ -155,8 +146,6 @@ public function __construct(
155
146
$ this ->remove = $ remove ;
156
147
$ this ->themeCollection = $ themeCollection ;
157
148
$ this ->themeProvider = $ themeProvider ;
158
- $ this ->appState = $ appState ;
159
- $ this ->appState ->setAreaCode (Area::AREA_ADMIN );
160
149
$ this ->backupRollbackFactory = $ backupRollbackFactory ;
161
150
parent ::__construct ();
162
151
}
0 commit comments