Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
website_rollback.php
Go to the documentation of this file.
1 <?php
9 
10 $registry->unregister('isSecureArea');
11 $registry->register('isSecureArea', true);
12 
15 $website->load('test');
16 
17 if ($website->getId()) {
18  $website->delete();
19 }
20 
21 $registry->unregister('isSecureArea');
22 $registry->register('isSecureArea', false);
23 
24 /* Refresh stores memory cache */
26  \Magento\Store\Model\StoreManagerInterface::class
27 )->reinitStores();
$registry