Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Use app() instead of init() so app is properly initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
dersam committed Nov 30, 2015
1 parent cdd0c69 commit 715276a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "linusshops/prophet",
"description": "Zero footprint Module testing for Magento Modules",
"version": "0.6.7",
"version": "0.7.0",
"type": "utility",
"keywords": [
"magento",
Expand Down
4 changes: 3 additions & 1 deletion src/LinusShops/Prophet/Magento.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public static function bootstrap($path = '.', Options $options)

require_once $path.'/app/Mage.php';

\Mage::init('', '', $options->getAll());
$app = \Mage::app('default', 'store', $options->getAll());
$app->getConfig()->loadEventObservers('global');
$app->getConfig()->loadEventObservers('front');

self::$loaded = true;
}
Expand Down

0 comments on commit 715276a

Please sign in to comment.