| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function initializeAutoloader() { |
||
| 34 | static $initialized = false; |
||
| 35 | if ( ! $initialized) { |
||
| 36 | // instantiate PSR4 autoloader |
||
| 37 | espresso_load_required( 'Psr4Autoloader', EE_CORE . 'Psr4Autoloader.php' ); |
||
| 38 | EE_Psr4AutoloaderInit::$psr4_loader = new Psr4Autoloader(); |
||
| 39 | // register the autoloader |
||
| 40 | EE_Psr4AutoloaderInit::$psr4_loader->register(); |
||
| 41 | // register the base directories for the namespace prefix |
||
| 42 | EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspresso', EE_PLUGIN_DIR_PATH); |
||
| 43 | EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspressoBatchRequest', EE_LIBRARIES . 'batch'); |
||
| 44 | $initialized = true; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 61 | // Location: /core/EE_Psr4AutoloaderInit.core.php |