Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
||
25 | public function __construct() { |
||
26 | static $initialized = false; |
||
27 | if ( ! $initialized ) { |
||
28 | // instantiate PSR4 autoloader |
||
29 | espresso_load_required( 'Psr4Autoloader', EE_CORE . 'Psr4Autoloader.php' ); |
||
30 | EE_Psr4AutoloaderInit::$psr4_loader = new \EventEspresso\Core\Psr4Autoloader(); |
||
31 | // register the autoloader |
||
32 | EE_Psr4AutoloaderInit::$psr4_loader->register(); |
||
33 | // register the base directories for the namespace prefix |
||
34 | EE_Psr4AutoloaderInit::$psr4_loader->addNamespace( 'EventEspresso', EE_PLUGIN_DIR_PATH ); |
||
35 | $initialized = true; |
||
36 | } |
||
37 | } |
||
38 | |||
52 | // Location: /core/EE_Psr4AutoloaderInit.core.php |