예제 #1
0
 /**
  * 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;
 }
예제 #2
0
<?php

require_once __DIR__ . '/../../../autoload.php';
\Dewdrop\Bootstrap\Wp::handleWpLoadGlobals();
$GLOBALS['dewdrop_pimple'] = \Dewdrop\Bootstrap\Detector::findPimple();