Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Autoload
AutoloaderRegistry.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Autoload
;
7
8
use
Magento\Framework\Autoload\AutoloaderInterface
;
9
13
class
AutoloaderRegistry
14
{
18
protected
static
$autoloader
;
19
26
public
static
function
registerAutoloader
(
AutoloaderInterface
$newAutoloader)
27
{
28
self::$autoloader = $newAutoloader;
29
}
30
37
public
static
function
getAutoloader
()
38
{
39
if
(self::$autoloader !==
null
) {
40
return
self::$autoloader
;
41
}
else
{
42
throw
new \Exception(
'Autoloader is not registered, cannot be retrieved.'
);
43
}
44
}
45
}
Magento\Framework\Autoload\AutoloaderRegistry\$autoloader
static $autoloader
Definition:
AutoloaderRegistry.php:18
Magento\Framework\Autoload\AutoloaderRegistry\registerAutoloader
static registerAutoloader(AutoloaderInterface $newAutoloader)
Definition:
AutoloaderRegistry.php:26
Magento\Framework\Autoload\AutoloaderRegistry\getAutoloader
static getAutoloader()
Definition:
AutoloaderRegistry.php:37
Magento\Framework\Autoload\AutoloaderRegistry
Definition:
AutoloaderRegistry.php:13
Magento\Framework\Autoload\AutoloaderInterface
Definition:
AutoloaderInterface.php:11
Magento\Framework\Autoload
Definition:
AutoloaderInterface.php:6