This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* This script will load the Magento 2 Object Manager, after which you | |
* can execute anything you want. "One time" scripts, just to fool | |
* around with Magento's functionality or to debug stuff. | |
* | |
* Place this file in the root folder of the Magento instance and execute: | |
* php magento2-bootstrap.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update composer.json and add following: | |
{ | |
... | |
"require": { | |
"magento/framework": "~1.0.0-beta", | |
"magento/sample-data": "1.0.0-beta", | |
"magento/sample-data-media": "~0.42.0-beta2" | |
}, | |
"repositories": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu | |
declare -a file_patterns=('app/code/core' 'app/Mage.php$' '^index.php$') | |
exit_status=0 | |
while read x file; do | |
for file_pattern in ${file_patterns[@]}; do | |
if [[ $file =~ $file_pattern ]]; then |