Skip to content

Commit fbc656c

Browse files
committed
Merge remote-tracking branch 'falcon/MAGETWO-62198' into MAGETWO-62964
2 parents bb0184c + 912a063 commit fbc656c

File tree

28 files changed

+327
-66
lines changed

28 files changed

+327
-66
lines changed

app/code/Magento/Deploy/Model/Filesystem.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
use Magento\User\Model\ResourceModel\User\Collection as UserCollection;
1414

1515
/**
16-
* Generate static files, compile; clear var/generation, var/di/, var/view_preprocessed and pub/static directories
16+
* Generate static files, compile
17+
* Сlear generated/code, generated/metadata/, var/view_preprocessed and pub/static directories
1718
*
1819
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1920
*/
@@ -129,7 +130,7 @@ public function __construct(
129130
public function regenerateStatic(
130131
OutputInterface $output
131132
) {
132-
// Сlear var/generation, var/di/, var/view_preprocessed and pub/static directories
133+
// Сlear generated/code, generated/metadata/, var/view_preprocessed and pub/static directories
133134
$this->cleanupFilesystem(
134135
[
135136
DirectoryList::CACHE,
@@ -315,7 +316,7 @@ protected function changePermissions($directoryCodeList, $dirPermissions, $fileP
315316
*/
316317
public function lockStaticResources()
317318
{
318-
// Lock /var/generation, /var/di/ and /var/view_preprocessed directories
319+
// Lock /generated/code, /generated/metadata/ and /var/view_preprocessed directories
319320
$this->changePermissions(
320321
[
321322
DirectoryList::GENERATION,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
"psr-0": {
227227
"": [
228228
"app/code/",
229-
"var/generation"
229+
"generated/code"
230230
]
231231
},
232232
"files": [

composer.lock

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/functional/.htaccess.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##############################################
22
## Allow access to command.php and website.php
3-
<FilesMatch "command.php|website.php|export.php">
3+
<FilesMatch "command.php|website.php|export.php|pathChecker.php|deleteMagentoGeneratedCode.php">
44
order allow,deny
55
allow from all
66
</FilesMatch>

dev/tests/functional/lib/Magento/Mtf/Util/Command/Cli/Setup.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ class Setup extends Cli
1818
*/
1919
const PARAM_SETUP_UNINSTALL = 'setup:uninstall';
2020

21+
/**
22+
* Parameter for DI compile Magento command.
23+
*/
24+
const PARAM_SETUP_DI_COMPILE = 'setup:di:compile';
25+
2126
/**
2227
* Options for uninstall Magento command.
2328
*
@@ -34,4 +39,14 @@ public function uninstall()
3439
{
3540
parent::execute(Setup::PARAM_SETUP_UNINSTALL, $this->options);
3641
}
42+
43+
/**
44+
* DI Compile.
45+
*
46+
* @return void
47+
*/
48+
public function diCompile()
49+
{
50+
parent::execute(Setup::PARAM_SETUP_DI_COMPILE);
51+
}
3752
}

0 commit comments

Comments
 (0)