Created
January 14, 2016 12:13
-
-
Save aquilax/6de203ee341c72a73767 to your computer and use it in GitHub Desktop.
PrestaShop REPL
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 | |
// | |
// PHP REPL with initialized Prestashop environment | |
// | |
// Inspired by https://gist.github.com/Vinai/5579309 | |
// | |
$configFile = '../config/config.inc.php'; | |
// Search for boris in PHP's default include path and Magento's lib directory | |
require_once '/home/vagrant/.composer/vendor/d11wtq/boris/lib/autoload.php'; | |
umask(0); | |
require_once $configFile; | |
$boris = new \Boris\Boris('presta> '); | |
$boris->start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment