mirror of
https://github.com/foomo/Foomo.Magento2.git
synced 2025-10-16 12:35:34 +00:00
bootstrap: magento
This commit is contained in:
parent
a19bd55adf
commit
b8258988b1
@ -18,8 +18,11 @@ class Boostrap
|
||||
*/
|
||||
public static function bootstrap()
|
||||
{
|
||||
|
||||
if (!class_exists('\Magento\Framework\App\Bootstrap')) {
|
||||
return self::init();
|
||||
} else if(!self::$bootstrap) {
|
||||
self::$bootstrap = Bootstrap::create(BP, $_SERVER);
|
||||
}
|
||||
return self::$bootstrap;
|
||||
}
|
||||
@ -63,6 +66,7 @@ class Boostrap
|
||||
{
|
||||
if (!class_exists('\Magento\Framework\App\Bootstrap')) {
|
||||
self::init();
|
||||
} else {
|
||||
}
|
||||
return \Magento\Framework\App\ObjectManager::getInstance();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user