File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Backup/Controller/Adminhtml/Index Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Backup \Controller \Adminhtml \Index ;
8
8
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
9
10
use Magento \Framework \App \Filesystem \DirectoryList ;
10
11
use Magento \Framework \Filesystem ;
11
12
12
13
/**
14
+ * Backup rollback controller.
15
+ *
13
16
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
14
17
*/
15
- class Rollback extends \Magento \Backup \Controller \Adminhtml \Index
18
+ class Rollback extends \Magento \Backup \Controller \Adminhtml \Index implements HttpPostActionInterface
16
19
{
17
20
/**
18
21
* Rollback Action
@@ -124,6 +127,7 @@ public function execute()
124
127
$ adminSession ->destroy ();
125
128
126
129
$ response ->setRedirectUrl ($ this ->getUrl ('* ' ));
130
+ // phpcs:disable Magento2.Exceptions.ThrowCatch
127
131
} catch (\Magento \Framework \Backup \Exception \CantLoadSnapshot $ e ) {
128
132
$ errorMsg = __ ('We can \'t find the backup file. ' );
129
133
} catch (\Magento \Framework \Backup \Exception \FtpConnectionFailed $ e ) {
You can’t perform that action at this time.
0 commit comments