/** * Get the global Pimple instance. If it isn't already available, find it. * * @return SensioPimple */ public static function getInstance() { if (null === self::$instance) { self::$instance = Detector::findPimple(); } return self::$instance; }
<?php require_once __DIR__ . '/../../../autoload.php'; \Dewdrop\Bootstrap\Wp::handleWpLoadGlobals(); $GLOBALS['dewdrop_pimple'] = \Dewdrop\Bootstrap\Detector::findPimple();