13
13
use Magento \User \Model \ResourceModel \User \Collection as UserCollection ;
14
14
15
15
/**
16
+ * Generate static files, compile; clear var/generation, var/di/, var/view_preprocessed and pub/static directories
17
+ *
16
18
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
17
19
*/
18
20
class Filesystem
@@ -126,7 +128,7 @@ public function __construct(
126
128
public function regenerateStatic (
127
129
OutputInterface $ output
128
130
) {
129
- // Сlean up / var/generation, / var/di/, / var/view_preprocessed and / pub/static directories
131
+ // Сlear var/generation, var/di/, var/view_preprocessed and pub/static directories
130
132
$ this ->cleanupFilesystem (
131
133
[
132
134
DirectoryList::CACHE ,
@@ -156,7 +158,7 @@ protected function deployStaticContent(
156
158
. implode (' ' , $ this ->getUsedLocales ());
157
159
158
160
/**
159
- * @todo build a solution that does not depend on exec
161
+ * @todo eliminate exec
160
162
*/
161
163
try {
162
164
$ execOutput = $ this ->shell ->execute ($ cmd );
@@ -213,7 +215,7 @@ private function getUserCollection()
213
215
}
214
216
215
217
/**
216
- * Runs code multi-tenant compiler to generate code and DI information
218
+ * Runs compiler
217
219
*
218
220
* @param OutputInterface $output
219
221
* @return void
@@ -235,7 +237,7 @@ protected function compile(OutputInterface $output)
235
237
* exec command is necessary for now to isolate the autoloaders in the compiler from the memory state
236
238
* of this process, which would prevent some classes from being generated
237
239
*
238
- * @todo build a solution that does not depend on exec
240
+ * @todo eliminate exec
239
241
*/
240
242
try {
241
243
$ execOutput = $ this ->shell ->execute ($ cmd );
@@ -288,7 +290,6 @@ public function cleanupFilesystem($directoryCodeList)
288
290
* @param int $dirPermissions
289
291
* @param int $filePermissions
290
292
* @return void
291
- *
292
293
* @deprecated
293
294
*/
294
295
protected function changePermissions ($ directoryCodeList , $ dirPermissions , $ filePermissions )
@@ -308,7 +309,6 @@ protected function changePermissions($directoryCodeList, $dirPermissions, $fileP
308
309
* Chenge permissions on static resources
309
310
*
310
311
* @return void
311
- *
312
312
* @deprecated
313
313
*/
314
314
public function lockStaticResources ()
0 commit comments