September 2018
Beginner to intermediate
218 pages
4h 27m
English
Much like recurring scripts, the RecurringData scripts are rarely used in Magento. They also execute on each and every setup:upgrade command, regardless of the schema_version or data_version logged against the setup_module table. Magento Open Source uses merely three RecurringData scripts throughout its codebase.
Let's create the <MAGELICIOUS_DIR>/Core/Setup/RecurringData.php file with the following content:
use Magento\Framework\Setup\InstallDataInterface;use Magento\Framework\Setup\ModuleContextInterface;use Magento\Framework\Setup\ModuleDataSetupInterface;class RecurringData implements InstallDataInterface { public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { $setup->startSetup(); ...Read now
Unlock full access