Is it possible to include multiple Magento (Mage.php
) instances into the same external script and run them simultaneously?
My idea is to develop an external migration tool between two Magento systems, where entities from one instance will be directly transferred into the other one.
Normally I can load Mage
via:
require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
But can I do something like:
require_once('../old/app/Mage.php'); //Path to Magento (1st instance)
require_once('../new/app/Mage.php'); //Path to Magento (2st instance)
umask(0);
Mage::app(); //This would probably not work anymore, if I include more than one Mage.php?..
Does anyone have an idea?