/** * @param bool $reset * Whether to forcibly rebuild the entire container. * @return \Symfony\Component\DependencyInjection\TaggedContainerInterface */ public static function singleton($reset = FALSE) { if ($reset || self::$singleton === NULL) { $c = new self(); self::$singleton = $c->createContainer(); } return self::$singleton; }