Some hacks to make M2 development easier
Magento 2 module with development hacks, that came in handy for myself.
Use the following commands to install:
composer require yireo/magento2-devhacks:@dev --dev
Enable this module:
./bin/magento module:enable Yireo_DevHacks ./bin/magento setup:upgrade
The core checks whether PHTML templates are in the path of the Magento core. When using the
path to symlink a local repository to Magento, while the path is outside of Magento, this throws an exception. This module simply skips the entire logic. No configuration needed. Bam.
When running integration tests, you probably want to frequently toggle the constant
disabled. The following command-line easily allows for this (assuming the file is actually
dev/tests/integration/phpunit.xml cause you shouldn't modify the
It is toggled. You can also set the value directly:
bin/magento yireo_devhacks:toggle_tests_cleanup enabled