September 2018
Beginner to intermediate
218 pages
4h 27m
English
The Recurring scripts executes on each and every setup:upgrade command, regardless of the schema_version or data_version logged against the setup_module table.
Let's create the <MAGELICIOUS_DIR>/Core/Setup/Recurring.php file with the following content:
use Magento\Framework\Setup\InstallSchemaInterface;use Magento\Framework\Setup\ModuleContextInterface;use Magento\Framework\Setup\SchemaSetupInterface;class Recurring implements InstallSchemaInterface { public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $setup->startSetup(); echo 'Recurring->install()' . PHP_EOL; $setup->endSetup(); }}
Though interesting, the Recurring scripts are rarely used in Magento. Only a handful of them are used, ...
Read now
Unlock full access