Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Backup
Test
Unit
_files
app_dirs_rollback.php
Go to the documentation of this file.
1
<?php
10
$appDirs
= [
'app'
,
'pub/media'
,
'pub'
,
'var/log'
,
'var'
];
11
foreach
(
$appDirs
as $dir) {
12
$appDir
= TESTS_TEMP_DIR .
'/Magento/Backup/data/'
. $dir;
13
if
(
is_dir
(
$appDir
)) {
14
rmdir
(
$appDir
);
15
}
16
}
17
18
$files
= glob(TESTS_TEMP_DIR .
'/Magento/Backup/data/*'
, GLOB_NOSORT);
19
foreach
(
$files
as $file) {
20
unlink
($file);
21
}
22
rmdir
(TESTS_TEMP_DIR .
'/Magento/Backup/data'
);
23
rmdir
(TESTS_TEMP_DIR .
'/Magento/Backup'
);
$appDir
$appDir
Definition:
theme.php:12
$appDirs
$appDirs
Definition:
app_dirs_rollback.php:10
Magento\Framework\Backup\unlink
unlink($path)
Definition:
io.php:69
Magento\Framework\Backup\rmdir
rmdir($path)
Definition:
io.php:80
Magento\Framework\Backup\is_dir
is_dir($path)
Definition:
io.php:14
$files
foreach($appDirs as $dir) $files
Definition:
app_dirs_rollback.php:18