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